mirror of
https://github.com/yawut/SDL.git
synced 2026-08-12 03:55:56 -05:00
You don't need to copy the pixels into the streaming texture's pixel data. This behavior is defined specifically to optimize the UpdateTexture path.
This commit is contained in:
@@ -164,7 +164,7 @@ main(int argc, char *argv[])
|
||||
} else if (delay > MILLESECONDS_PER_FRAME) {
|
||||
delay = MILLESECONDS_PER_FRAME;
|
||||
}
|
||||
//SDL_Delay(delay);
|
||||
SDL_Delay(delay);
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
|
||||
Reference in New Issue
Block a user