Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2011-02-28 18:32:17
Size: 708
Editor: SheenaSmith
Comment: update content - w/ Sam; remove draft
Revision 3 as of 2011-02-28 18:34:27
Size: 654
Editor: SheenaSmith
Comment: update content - w/ Sam
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:
By default SDL uses the flag passed into [[SDL_CreateRenderer]](). By default SDL uses the SDL_RENDERER_PRESENTVSYNC flag passed into [[SDL_CreateRenderer]]().
Line 22: Line 22:
This hint overrides SDL_RENDERER_PRESENTVSYNC in [[SDL_CreateRenderer]]().

SDL_HINT_RENDER_VSYNC

A hint that specifies whether sync to vertical refresh is enabled or disabled in SDL_CreateRenderer() to avoid tearing.

Values

0

disable vsync

1

enable vsync

Default

By default SDL uses the SDL_RENDERER_PRESENTVSYNC flag passed into SDL_CreateRenderer().

Code Examples

You can add your code example here

Remarks

If framebuffer acceleration is enabled this will affect the surface returned by SDL_SetVideoMode().


CategoryDefine, CategoryHints

None: SDL_HINT_RENDER_VSYNC (last edited 2011-12-31 20:25:01 by SheenaSmith)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit