this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Disabled snapping on sprite-demo and sprite-stress-demo so the animation is smooth. Disabled vsync on sprite-stress-demo.

+5 -3
+2 -2
demos/sprite-stress/main.c
··· 8 8 GPU_Target* screen; 9 9 10 10 printRenderers(); 11 - 11 + GPU_SetPreInitFlags(GPU_INIT_DISABLE_VSYNC); 12 12 screen = GPU_Init(800, 600, GPU_DEFAULT_INIT_FLAGS); 13 13 if(screen == NULL) 14 14 return -1; ··· 36 36 if(image == NULL) 37 37 return -1; 38 38 39 - 39 + GPU_SetSnapMode(image, GPU_SNAP_NONE); 40 40 41 41 startTime = SDL_GetTicks(); 42 42 frameCount = 0;
+3 -1
demos/sprite/main.c
··· 31 31 32 32 GPU_Image* image = GPU_LoadImage("data/test.bmp"); 33 33 if(image == NULL) 34 - return -1; 34 + return -1; 35 + 36 + GPU_SetSnapMode(image, GPU_SNAP_NONE); 35 37 36 38 for(i = 0; i < MAX_SPRITES; i++) 37 39 {