how to use deltatiming (specifically the module blide.deltatiming)?

Started by William, February 19, 2024, 01:30:43

Previous topic - Next topic

William

https://www.blitzcoder.org/forum/topic.php?id=556

i made minor modifications to the module so it could compile.

why does fps (Performance) slow from some 2000 fps to 330 fps just importing the module into my bmx class file

i need to setup deltatiming for things like moving characters around without a performance cost.. i may be able to figure this out on my own. for now im posting about it.
im still interested in oldschool app/gamedev

Baggey

Quote from: William on February 19, 2024, 01:30:43https://www.blitzcoder.org/forum/topic.php?id=556

i made minor modifications to the module so it could compile.

why does fps (Performance) slow from some 2000 fps to 330 fps just importing the module into my bmx class file

i need to setup deltatiming for things like moving characters around without a performance cost.. i may be able to figure this out on my own. for now im posting about it.
Quotei made minor modifications to the module so it could compile.
WOW :o

id love to help but my programming knowledge isnt that good :-X

I assume you went from Blitzmax to blitmaxNG if so you must have Superstrict enabled? This will cause you a lot of problems?

The Variables will definatley need to be correct! I mean Byte, int , float etc... or you will lose data or get floating data problems? Giving you random errors.

 I find, if i take the current value of miillisecs() starting your main loop and things you do.

Then reference back to the time from where you've ended your main program loop.

if your time is to fast then compensate by slowing down or do the opposite until it's right this can be done on the fly!?

if you have a lot of stuff happening which isn't visual you can compensate by skipping out of your function before it does unescesary  this will speed things up as you don't need to see or hear it?

If this is of no help sorry. And ignore it? But i hope you solve your problem. Keep up the good work.

Kind Regards Baggey
Running a PC that just Aint fast enough!? i7 4Ghz Quad core 24GB ram 1TB SSD and NVIDIA Quadro K620 . DID Technology stop! Or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!

William

@Baggey  i've quit blitzmax.
im still interested in oldschool app/gamedev

Baggey

Running a PC that just Aint fast enough!? i7 4Ghz Quad core 24GB ram 1TB SSD and NVIDIA Quadro K620 . DID Technology stop! Or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!

William

Quote from: Baggey on May 18, 2024, 08:31:11
Quote from: William on May 17, 2024, 22:42:12@Baggey  i've quit blitzmax.
What are you using now?

i'm not using anything and it wouldn't be good for me to. besides its not a tool. is it?? (for real i dont know) i've quit my project coding too basically. it had been or would be really sad.


i'm going to play some NS2 i did install WoW but i cant play that its an old kids game. right now. the schizophrenia is real. i have a form of alzheimers.
im still interested in oldschool app/gamedev

Baggey

Quote from: William on May 18, 2024, 20:07:27
Quote from: Baggey on May 18, 2024, 08:31:11
Quote from: William on May 17, 2024, 22:42:12@Baggey  i've quit blitzmax.
What are you using now?

i'm not using anything and it wouldn't be good for me to. besides its not a tool. is it?? (for real i dont know) i've quit my project coding too basically. it had been or would be really sad.


i'm going to play some NS2 i did install WoW but i cant play that its an old kids game. right now. the schizophrenia is real. i have a form of alzheimers.
Im so sorry to hear that. :(

Kind Regards Baggey
Running a PC that just Aint fast enough!? i7 4Ghz Quad core 24GB ram 1TB SSD and NVIDIA Quadro K620 . DID Technology stop! Or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!