Drop verbose comments from the clip-cache change.
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ Sprite :: struct {
|
|||||||
data: ^Character_Data,
|
data: ^Character_Data,
|
||||||
position: Vec2,
|
position: Vec2,
|
||||||
clip: string,
|
clip: string,
|
||||||
clip_def: Clip_Def, // shallow cache; frames alias Character_Data (do not mutate clips map after spawn)
|
clip_def: Clip_Def,
|
||||||
has_clip: bool,
|
has_clip: bool,
|
||||||
frame: int,
|
frame: int,
|
||||||
time: f32,
|
time: f32,
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package main
|
|||||||
import "core:fmt"
|
import "core:fmt"
|
||||||
import eng "pkg:engine"
|
import eng "pkg:engine"
|
||||||
|
|
||||||
// Stress the draw budget: one Character_Data, MAX_SPRITES instances.
|
// Many sprites sharing one Character_Data (Flyweight) — good batching demo.
|
||||||
COUNT :: eng.MAX_SPRITES
|
COUNT :: eng.MAX_SPRITES
|
||||||
COLS :: 16
|
COLS :: 16
|
||||||
FRAME_LOG_EVERY :: 60
|
FRAME_LOG_EVERY :: 60
|
||||||
|
|||||||
Reference in New Issue
Block a user