04-23-2023, 05:02 AM
(04-23-2023, 04:24 AM)megamarc Wrote: I've uploaded a new release to GitHub and itch.io, that adds these features to the built-in window:
Full post can be read here:
- Support for non-60 Hz refresh rates. Auto adjusted when creating the window, or can be manually set
- V-Sync can be disabled between frames, allowing to setup a target fps different than the monitor refresh rate
- Window scaling factor can be setup at runtime with ALT-1 to ALT-5
https://megamarc.itch.io/tilengine/devlo...5-released
This is very nice! It will solve problems for people that have non-60Hz screens! (Including me and people that have high end setup)
Adjusting scaling factor is also a good idea, but I also suggest to add getters and setters to set the scaling through code. One use case example can be game settings. Most of games today have a setting that let you adjusting the size of the window.