is it lightweight graphics libs in C lang with cross-platform support (Windows, Linux,…
- User
is it lightweight graphics libs in C lang with cross-platform support (Windows, Linux, Android)? I seek for lib to create image editor
- Assistant
- User
i found lib Raylib and want to use it. How can i restrict fps only when some input event happens?
- Assistant
To restrict the FPS (frames per second) in Raylib only when an input event happens, you can use a combination of
SetTargetFPS()to limit the frame rate and custom logic to determine when to enable or disable this restriction based on user input. - User
Thanks. But under fps restriction i mean fully not to redraw frame until some input, etc event happen. I.e. redraw must be called when some event happens.
- Assistant
Got it, you want to redraw the frame only when an event (such as user input) occurs, effectively stopping the rendering loop until something happens. This can be achieved by having a mechanism to check for input events and only triggering a redraw when necessary.
- User
Some side question: what benefit of platform independent code?
- Assistant
- User
Sorry. It's my typo. What benefit of position-independent code?
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.