lime icon indicating copy to clipboard operation
lime copied to clipboard

Add `vsync` property to windows for native targets

Open Starmapo opened this issue 1 year ago • 4 comments

Currently, setting a window's VSync value is only possible from the Project.xml file. This pull request adds the vsync property to lime.ui.Window, which allows for getting and setting the VSync value during runtime. Useful if you want to let the user decide if they want VSync enabled.

This is only implemented for native targets, and doesn't work for Flash or HTML5 applications, though I don't know if they support VSync.

Starmapo avatar Jul 10 '23 22:07 Starmapo

Which platforms have you tested this on?

dimensionscape avatar Jul 10 '23 22:07 dimensionscape

Which platforms have you tested this on?

Windows.

Starmapo avatar Jul 10 '23 22:07 Starmapo

Thank you. This is a nice addition.

dimensionscape avatar Jul 10 '23 22:07 dimensionscape