mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-03 20:13:29 +00:00
Use 60 FPS for textures_image_loading example (#1867)
This commit is contained in:
parent
ae230dae46
commit
8a46b5e6c0
@ -28,6 +28,7 @@ int main(void)
|
|||||||
Texture2D texture = LoadTextureFromImage(image); // Image converted to texture, GPU memory (VRAM)
|
Texture2D texture = LoadTextureFromImage(image); // Image converted to texture, GPU memory (VRAM)
|
||||||
|
|
||||||
UnloadImage(image); // Once image has been converted to texture and uploaded to VRAM, it can be unloaded from RAM
|
UnloadImage(image); // Once image has been converted to texture and uploaded to VRAM, it can be unloaded from RAM
|
||||||
|
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
|
||||||
//---------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------
|
||||||
|
|
||||||
// Main game loop
|
// Main game loop
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user