Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bmn

Pages: 1 [2]
16
General / Asynchronous input
« on: October 16, 2009, 10:30:53 pm »
well actually it's no solution at all :)

are you planning to add this feature into future versions of your library?

17
General / Asynchronous input
« on: October 16, 2009, 04:46:22 pm »
Hi,

I know the title sound weird, but allow me to expand it:
whoever red the code of quake3 surely noticed, that their directx based implementation of input system is system-buffered and, which is most important, provides with a captured event the information of "delta time" between the event has occurred (or has been recorded by DX) and the moment we red it from the buffer.

This "delta time" value is particularly valuable in FPS games, where an abstraction between input precision and frame rate is desired.

So far, I've been using SDL for cross-platform products, but now I received a job description that requires this delta-time value to be provided by an input system. By reading SFML "Event" class documentation, I've noticed, that SFML has no such feature built-in.

The team's idea was to start a different thread, waiting for input events, and capture them immediately, enrich with the "delta-time" value, and put in the mutex-protected buffer, so the main thread can read the buffer with the desired values.
In SDL, due to it's design, such approach would be unsuccessful, as the SDL_WaitEvent (which we wanted to loop in the input-thread) calls internal functions specific to main thread.

Has SFML the same restriction? Or can the desired result be achieved different way in SFML library?

Regards,
akuda

18
Feature requests / Iconify and fullscreen toggle
« on: October 07, 2009, 02:09:23 pm »
Laurent, is it possible that you do something with this, especially iconify thing?

Pages: 1 [2]
anything