The timer tag has no wiki summary.
1
vote
3answers
59 views
Game programming and quantity of timers
I've made a simple 2D game engine using C# and DirectX and it's fully functional for the demo I made to test it. I have a Timer object that uses QueryPerformanceCounter and I don't know what's the ...
-2
votes
5answers
182 views
Best C++ Portable time library for game development [closed]
I'm venturing into the dark world of portable development and I'm looking for a nice library to keep track of system time for all game events. So far I've turned to trust boost and found:
This boost ...
0
votes
1answer
46 views
How can you run events after a set amount of time in SFML 2.0?
I've been using SFML 1.6 for a while and recently upgraded to 2.0, apparently there's a new sf::Time type however I'm clueless as to how I can achieve running of a certain function after a set amount ...
4
votes
2answers
127 views
Game resource timers - general implementation
I'm interested in understanding how resource generation timers work on many of the mmorts type games out there. I can't wrap my head exactly around how the timers are synched with servers, especially ...
5
votes
4answers
468 views
Game Clock Precision
I'm reading a fantastic article about game timer precision and here is a quote about 2/3 of the way into the article:
If you start your game clock at about 4 billion (more precisely 2^32,
or any ...
1
vote
3answers
248 views
Will having many timers affect my game performance?
I'm making a game for android, and earlier today I was trying to add some cool stuff to my game. The problem is this thing needs like 5 timers. I build my timers like this:
timer += deltaTime;
...
4
votes
4answers
204 views
Playing a death anim on an enemy that I want to remove
I've been trying to find a tutorial on how to best make animations in Android. I already have some animations for my enemies and my character that are controlled by rectangles and changing ...
4
votes
1answer
115 views
Android Java: Way to effectively pause system time while debugging?
In my project, I call nanoTime and use that to get a deltaTime which I pass to my entities and animations.
However, while debugging (for example, stepping through my code), the system time on my ...
3
votes
1answer
106 views
android game performance regarding timers
Im new to the game-dev world and I have a tendancy to over-simplify my code, and sometimes this costs me alot fo memory.
Im using a custom TimerTask that looks like this:
public class Task ...
2
votes
1answer
118 views
What are the factors that determine the default frequency of a shader call?
After i have been played for some days with various vertex and fragments shaders seems clear to me that this programs are called by the GPU at every and each rendering cycle, the problem is that I ...
1
vote
1answer
149 views
High Resolution Timer Options in Windows
I'd like to know what are my options for high resolution timer in Window. I want a timer with at least 1ms precision since I need it for a rhythm game. I'm using QueryPerformanceCounter now, but I ...
0
votes
1answer
86 views
Periodic updates of an object in Unity
I'm trying to make a collider appear every 1 second. But I can't get the code right. I tried enabling the collider in the Update function and putting a yield to make it update every second or so. ...
2
votes
2answers
408 views
HTML5 Canvas Game Timer
How to create good timer for HTML5 Canvas games?
I am using RequestAnimationFrame( http://paulirish.com/2011/requestanimationframe-for-smart-animating/ )
But object's move too fast.
Something like ...
0
votes
2answers
261 views
Timer for pop up text in XNA
I am making an xna game which contains turn-based RPG battle elements. Any good game that features turn-based battle has to have a good feedback to the user.
For example, When my guy attacks, there ...
1
vote
0answers
235 views
Countdown Timer for Racing Game
I want to make a countdown timer for my racing game such as "3... 2... 1... GO!" I'm using GLUT, OpenGL, and C++. I was wondering what the most appropriate method to handle this in C++. clock()? ...