Add vsync.
This commit is contained in:
parent
a819fe0b81
commit
569fcf994b
3 changed files with 10 additions and 2 deletions
|
@ -87,7 +87,9 @@ OF_APPLICATION_DELEGATE(TestMain)
|
|||
|
||||
- (void)applicationDidFinishLaunching
|
||||
{
|
||||
ogk_display_flags_t flags = OGK_DISPLAY_FLAGS_RESIZABLE;
|
||||
ogk_display_flags_t flags =
|
||||
OGK_DISPLAY_FLAGS_RESIZABLE |
|
||||
OGK_DISPLAY_FLAGS_VSYNC;
|
||||
|
||||
display = [[OGKDisplay alloc] initWithSize: of_dimension(640, 480)
|
||||
position: of_point(200, 200)
|
||||
|
|
Reference in a new issue