Ada, games and frame rate calculation

From: Luke A. Guest (laguest_at_n_o_p_o_r_k_a_n_d_h_a_m.abyss2.demon.co.uk)
Date: 02/16/05


Date: Wed, 16 Feb 2005 21:32:08 +0000

Hi,

I'm currently designing a game engine in Ada and was wondering about using
the Ada.Real_Time facilities (especially the timing).

Now, normally you get the current time calculate how much time has passed
since the last time it was called. These values are used to implement
frame rate (FPS) display and to animated models. So ultimately, I need to
get access to the internals (I think).

So, as an example, I have my Ada.Real_Time.Time type which is my FPS, I
now have to display this on screen, so I need to determine the actual text
from the value. How do I do this?

Thanks,
Luke.



Relevant Pages

  • Re: DMD Datasheets
    ... It also includes row_clock timing and row_data hold times as well as a 75ns setup time for s_data. ... Otherwise, I'll need to ensure sclock doesn't toggle until I'm ready to strobe the latch and feed in the next row, or I'll have to limit the frame to the max time necessary to strobe in 128 bits. ... I'm sure I'll wind up making the timing on my display driver programmable and start with the timing for the Vishay device, but it would still be nice to have the requirement info for the others. ... Since there are no latches on board the DMD except for the current row being displayed, you need to keep sending data to the display to keep a frame visable. ...
    (rec.games.pinball)
  • Re: DMD Datasheets
    ... I'm specifically looking for timing parameters for the digital control signals. ... I'm sure I'll wind up making the timing on my display driver programmable and start with the timing for the Vishay device, but it would still be nice to have the requirement info for the others. ... Since there are no latches on board the DMD except for the current row being displayed, you need to keep sending data to the display to keep a frame visable. ... Bring column latch strobe low. ...
    (rec.games.pinball)
  • Re: Display problems in Vista
    ... the command packet needs to be transfered. ... I am doing 10 fps because that is all I need. ... have to display a line that is x pixels wide at any zoom level. ... I use GL_QUADS for the thick lines. ...
    (comp.graphics.api.opengl)
  • Re: UR tech demo
    ... supposed to run at 25 FPS and my laptop squeezes only 45 FPS from it ... which is the graphical display. ... The display has been tested on 4 machines so far: ... Also if during a real game implementation the FOV is greatly reduced ...
    (rec.games.roguelike.development)
  • Re: UR tech demo
    ... supposed to run at 25 FPS and my laptop squeezes only 45 FPS from it ... which is the graphical display. ... The display has been tested on 4 machines so far: ... Also if during a real game implementation the FOV is greatly reduced ...
    (rec.games.roguelike.development)