Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2011-02-26 01:43:55
Size: 746
Editor: SheenaSmith
Comment: create page - 2/4 changeset 5189 (2/24 5397)
Revision 2 as of 2011-02-28 18:32:17
Size: 708
Editor: SheenaSmith
Comment: update content - w/ Sam; remove draft
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 6: Line 5:
A hint that specifies a variable controlling whether updates to the SDL 1.2 screen surface should be synchronized with the vertical refresh, to avoid tearing. A hint that specifies whether sync to vertical refresh is enabled or disabled in [[SDL_CreateRenderer]]() to avoid tearing.
Line 15: Line 14:
By default SDL does not sync screen surface updates with vertical refresh. By default SDL uses the flag passed into [[SDL_CreateRenderer]]().
Line 23: Line 22:
''You can add useful comments here'' This hint overrides SDL_RENDERER_PRESENTVSYNC in [[SDL_CreateRenderer]]().
Line 25: Line 24:
<<Color2(green,Should there be a remark linking back to SDL_SetVideoMode here?)>> If framebuffer acceleration is enabled this will affect the surface returned by [[SDL_SetVideoMode]]().

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 flag passed into SDL_CreateRenderer().

Code Examples

You can add your code example here

Remarks

This hint overrides SDL_RENDERER_PRESENTVSYNC in SDL_CreateRenderer().

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