Faster than video event processing. Re: Drag & Drop GUI Library

Hi,

just a small note…

Event processing faster than rendering is useful for some action games.

Some games update their simulation loop faster than the rendering loop.

It really can make a difference in how responsive the game feels.

cu!On Wed, Feb 18, 2009 at 4:10 AM, Pierre Phaneuf wrote:

On Tue, Feb 17, 2009 at 11:34 AM, Andrew Wan wrote:

Am wondering if anyone know a REAL-TIME drag & drop GUI SDL library? Not windows
event-based driven, but real-time driven. It’s for a game so there’s going to be
things updating while a drag is happening, etc.

Events are how programs get information on what is happening.

What’s referred to as “real-time”, is actually “sufficiently low
latency”, and not quite “zero latency”. In the case of a game, you
only need to process events fast and render the effected result within
a refresh cycle of your monitor, anything faster is just unnecessary.

What you need is to keep some state on whether a drag is going on or
not, what is being dragged, and so on. When a mouse motion event comes
in, and you have an object currently being dragged, you go an move it,
and so on…


http://pphaneuf.livejournal.com/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org