[maemo-developers] [maemo-developers] SDL vertical blank (vbl) sync.
From: Gustavo Sverzut Barbieri Gustavo.Barbieri at indt.org.brDate: Mon May 29 12:28:17 EEST 2006
- Previous message: [maemo-developers] SDL vertical blank (vbl) sync.
- Next message: [maemo-developers] SDL vertical blank (vbl) sync.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Monday 29 May 2006 08:42, ext Kuisma Salonen wrote: > Visti Andresen wrote: > > Hi I was wondering if anyone knows how to sync. the SDL_Flip to the > > vertical blanking of the display. > > > > While it is nice to get 47+ FPS while memset'ing the display, I would > > rather be synced to the display and avoid the tearing at the cost of FPS. > > This is actually generic issue, not just SDL one. When you call > SDL_Flip() (or SDL_UpdateRects() etc) it "draws" local data to the > display HW, and this goes through X. Having synchronization in the > display driver would solve this. Anyway I am not the person to say more > about this as I am not enough aware of display HW internals to tell how > hard implementing this would be and whether it would even be possible. http://scanline.ca/smooth/ This is a good resource to look at. This guy (http://scanline.ca) is extremely good in computer graphics, you may read his code and if it still doesn't work, mail him. -- Gustavo Sverzut Barbieri ------------------------ INdT, Recife, Brazil Jabber: barbieri at gmail.com MSN: barbieri at gmail.com ICQ#: 17249123 Skype: gsbarbieri Mobile: +55 (81) 9927 0010 Phone: +1 (347) 624 6296; 08122692 at sip.stanaphone.com GPG: 0xB640E1A2 @ wwwkeys.pgp.net
- Previous message: [maemo-developers] SDL vertical blank (vbl) sync.
- Next message: [maemo-developers] SDL vertical blank (vbl) sync.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]