Cursor: Apply local changes for cloud agent

This commit is contained in:
2026-08-09 21:12:57 -07:00
parent 0d4cdbd8ca
commit 0c06d75e86
4 changed files with 317 additions and 8 deletions
+6 -1
View File
@@ -89,7 +89,12 @@ draw_sprite :: proc(app: ^App, sprite: ^Sprite) {
if sprite == nil || sprite.data == nil || sprite.data.texture == nil {
return
}
if len(app.draw_list) >= MAX_SPRITES {
// Reserve room for the engine FPS overlay glyphs when enabled.
max_game := MAX_SPRITES
if app.show_fps && app.fps_texture != nil {
max_game -= FPS_OVERLAY_MAX_GLYPHS
}
if len(app.draw_list) >= max_game {
return
}