Browse thread
Re: [Caml-list] How to synchtonize swap buffers with vertical retrace in lablgk/lablgtk, or labgl/labltk,
-
Peter Ronnquist
-
Peter Ronnquist
-
Peter Ronnquist
- Sami Mäkelä
-
Peter Ronnquist
-
Peter Ronnquist
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Sami Mäkelä <sajuma@u...> |
| Subject: | Re: [Caml-list] How to synchtonize swap buffers with vertical retrace in lablgk/lablgtk, or labgl/labltk, |
Peter Ronnquist wrote: > Some clarification, the behavior I get is that the > animation is not smooth. It is like the vetical > retrace is missed sometimes. > It could be that it do the flip at the correcttime, > but that the loop sometimes takes too long so that one > vertical retrace is skipped. Here are some tips about how to make it faster: * Use Sdlvideo.surface_display_format to convert the image to faster format * Set the color depth to the depth of your screen * When using Sdlvideo.update_rect, Sdlvideo.flip is unnecessary. I don't know if update_rect waits for vertical retrace. ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr