   Fire
  Comments for the article Fire
  good tutorial  ;  > // this can be optimized by a > // look up table as I''ll show you laterWhy not only use a shift... that would be faster, and all compilers would optimize it that way anyway. The multiply for calculating the offset can be get rid of too.;  Code belows:double_buffer = Lock_Back_Buffer();memcpy(double_buffer, fire_buffer, 307200);lpDDSBack->Unlock(NULL);You leave the most important information about if the back buffer pitch is not same as screen width, then memcpy(double_buffer,fire_buffer,307200) will not run correctly.