Hi folks,
I've had the dgdk.Net since it first came out and have tinkerd with it now and again but due to work I've not had much time!
luckily now I have a much easier work load so have decided to start again.
My question is on delta time. I've had a search but nothing seems to quite hit what I'm thinking of.
I understand its used to normalise speeds for lower end systems using an ideal FPS, but do you have to use FPS? have a look please
System.Diagnostics.Stopwatch _stopwatch = new System.Diagnostics.Stopwatch();
long oldTime = _stopwatch.ElapsedMilliseconds
//psuedo code
while(game)
{
long curTime = _stopwatch.ElapsedMilliseconds;
float delta = (time - curTime) * 0.001f;
oldTime = curTime;
}
be a good way to tackle it? Before I crack on I'm wanting to make sure. Ofcourse in proper code it'll be a seperate method.