Problem with Timer speed

Post Reply
MacSpain
Posts: 2
Joined: Wed Mar 18, 2020 7:42 pm

Problem with Timer speed

Post by MacSpain » Sun Mar 22, 2020 8:10 pm

Hello!

I implemented the timer from viewtopic.php?f=40&t=1982 in my game, and noticed a problem with its' speed. When I set the Day/Night Cycle Speed to 60, then it's really slow, like 22 seconds between each tick, when I set it to 1, then it's like a quarter of a second, and I need to be able to make it go even faster. Is there any way to make handleGameTimer get called more often?
User avatar
dale_coop
Posts: 4868
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: Problem with Timer speed

Post by dale_coop » Sun Mar 22, 2020 8:51 pm

You can set any value you want for Day/night cycle... you could try "30", or "10 or... "3".
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE / UNDERGROUND ADVENTURE (Arcade version - Byte-Off-2019)
MacSpain
Posts: 2
Joined: Wed Mar 18, 2020 7:42 pm

Re: Problem with Timer speed

Post by MacSpain » Sun Mar 22, 2020 9:54 pm

I know that, that is not the issue. The problem is that it's not fast enough when I set it to 1. I want the timer to have a higher frequency. In the thread I linked they talked about setting it at 60 to make the programmed timer update every second. It's much slower for me.
User avatar
dale_coop
Posts: 4868
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: Problem with Timer speed

Post by dale_coop » Tue Mar 24, 2020 4:52 pm

If the result is not the same, I guess you have made a mistake somewhere...
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE / UNDERGROUND ADVENTURE (Arcade version - Byte-Off-2019)
Post Reply