|
Post by tbird on Apr 25, 2021 9:02:13 GMT -6
Unnecessary explanation, every game programmer knows you want to do your game movements in pixels per second, not pixels per frame, so by X 0.001 is guess what, makes delta time per second so whatever your speed variable is that you multiply by delta is how many pixels per second you want your object to move, I have never seen a game engine or language say how many pixels per 10th of a second you want to move it's convoluted and makes less sense.
I am curious why wouldn't you update delta every frame? You want to keep track of the ticks between every update so you know the difference required for delta. Not doing it every frame seems counterintuitive?
|
|
|
Post by rosy on Apr 25, 2021 10:37:40 GMT -6
It's nice that you know "every programmer" and that he knows what I want, better than I do, apparently ... What kind of better is a second to a decasecond, or a millisecond to a centisecond, or any other time interval? There is no point in creating artificial entities and unnecessary multiplication ...
I explained everything in the article ...
|
|
|
Post by tbird on Apr 25, 2021 11:07:32 GMT -6
I do not know every programmer dont be silly. I definitely know every game programmer though . Also I definitely know what you want better then you do, its a skill I obtained after some radiation exposure..... The explanation is for the industry standard for better understanding that is all. I will read your article and look for the answer to my question. Also unnecessary multiplication is better than unnecessary division as multiplication is many times faster than division in c++.
|
|
|
Post by rosy on Apr 25, 2021 11:16:44 GMT -6
Also unnecessary multiplication is better than unnecessary division as multiplication is many times faster than division in c++. I don't think so ... And where in my games do you see unnecessary division?
|
|
|
Post by tbird on Apr 25, 2021 11:24:28 GMT -6
I never said you did, just another off hand comment. I'm disappointed, no comment on my sarcasm, oh well thanks for your time rosy this pointless convo kept my mind off things for a bit. On another topic: Is it ok to use your function for keeping things at 60 frames in my engine?
|
|
|
Post by rosy on Apr 25, 2021 12:07:15 GMT -6
The first one? Since I made it public without reservation, you can ... But each of these methods has disadvantages.
|
|
|
Post by tbird on Apr 25, 2021 12:12:07 GMT -6
All I have read so far on delta is to keep track of its max value so it does not grow too large, I havent followed up on it yet.
As well with your article, I will give it proper attention when I can. Otherwise I will miss something.
|
|
|
Post by rosy on Apr 25, 2021 14:01:32 GMT -6
Too big, which is what?
|
|