[SDL] Normal behaviour ??
wizard at syntheticsoft.com
Fri Aug 24 17:11:01 PDT 2001
> What to do? Well, you could use some kind of wrapper API for the
> rendering functions, designed with asynchronous execution in mind. Then
> implement that wrapper API on top of some thread safe queue mechanism
> (one lock-free FIFO per client thread, perhaps), so that the API calls
> enqueue "commands" instead of calling the "real" API. Finally, implement
> a "server" that takes commands from the queue (possibly with some
> priority system, and perhaps even splitting/interleaving of large
> operations) and performs them using the underlying "real" API.
...or don't use OpenGL in immediate mode. To a degree, you're describing
what happens under the hood between your first OpenGL call and glFlush().
More information about the SDL