Closed infdivzero closed 1 week ago
@infdivzero None of the proposed solution seems good enough, just adding code complexity to address a very specific use-case.
CUSTOM_FRAME_CONTROL
is intended for advance use case, users on that situation could easely adapt raylib for their specific needs.
If CUSTOM_FRAME_CONTROL is defined, CORE.Time.frame isn't updated and GetFrameTime() returns 0. In EndDrawing(), the GIF recorder calls GetFrameTime() and will never add GIF frames to the recording. UpdateCamera() also requires GetFrameTime().
I have a few ideas:
CoreData CORE
extern and define CoreData in a header, exposing CORE.Time.frame.