day night cycle slowdown assistance.

I have been testing out a fairly simple day night cycle. Counts player steps, every 100 steps sets the time of day clock moves forward an hour, which is displayed in game by tinting the screen. After the final 'hour' it resets back to morning and repeats.
It's simple enough that it wont break all events I've done so far. Issue is I've noticed a good bit of slowdown since testing it out. I tried setting a wait timer for every 60 frames to help which did help some. But it seems to be stuttering every now and then. I'm sure this is it adjusting something on the back end. I don't know what or if there's anything to be done using this day night method. I'm hoping someone more experienced has some advice on the matter.
So you're kinda thoughtful by providing some screenshots, but then only one of those isn't badly cropped - we can't see the entire event 🤣

At a minimum, make sure each of your parallel events has a wait of at least 60 on it. And then look at them and see which you might be able to make more efficient and get rid of.

For example, I don't see why you'd need that map event that's running in parallel with all of the conditionals in it.

Separate those out into event pages with the Time_of_Day variable as the condition, have it do the screen tint and set a Time_Changed switch which goes to an empty page. Then your time_keeping_event undoes that switch - boom, fewer things in parallel.
So you're kinda thoughtful by providing some screenshots, but then only one of those isn't badly cropped - we can't see the entire event 🤣

At a minimum, make sure each of your parallel events has a wait of at least 60 on it. And then look at them and see which you might be able to make more efficient and get rid of.

For example, I don't see why you'd need that map event that's running in parallel with all of the conditionals in it.

Separate those out into event pages with the Time_of_Day variable as the condition, have it do the screen tint and set a Time_Changed switch which goes to an empty page. Then your time_keeping_event undoes that switch - boom, fewer things in parallel.
That's all thats happening in the events, I cropped them because the rest was just empty space except the map event test, but it just has an if event for 10 numbers. with the tint progressing each number.

The reason I have map events for the conditionals is different weather in sandy areas or swampy areas. or with the time so it doesnt become too dark in doors or underground.

Right right though. I'll try setting that delay in more common events and see if it helps with that slowdown. Thank you for the feedback!
here are a few general hints as well, from what I can see on your partial screenshots.

You should reduce the number of parallels you have.
experience shows that unless you know exactly what you're doing and have one complex plan, timing is always handled best in a single parallel common event.
all functions you have split between two common and one map parallel event should have been handled in a single parallel process common event.

if you have problems with that, try to do it and then post complete screenshots of what you have made
here are a few general hints as well, from what I can see on your partial screenshots.

You should reduce the number of parallels you have.
experience shows that unless you know exactly what you're doing and have one complex plan, timing is always handled best in a single parallel common event.
all functions you have split between two common and one map parallel event should have been handled in a single parallel process common event.

if you have problems with that, try to do it and then post complete screenshots of what you have made
I just ran through the few common events that run currently and added a 60 frame delay to all relevant ones and the slowdowns gone. One thing I noticed that I'm curious if anyone here would know. My friend helped me make the step counter event using some old guide we found. I didnt realize till just now the step counter was going up to 1,000,000 steps before resetting itself. I just changed that to reset after 10,000 steps. Is it likely the slowdown was in part due to keeping track of an every growing number that was reaching hundreds of thousands?

I do think it might be a good idea to consolidate some of these events though now that you both mentioned it.
no, any computer can handle much larger numbers without problems.

one thing that causes problems however is if you link events on different timers or on different parallels. I wrote something about that in an old tutorial about bughunting that is linked in my signature.

Original thread: https://forums.rpgmakerweb.com/threads/day-night-cycle-slowdown-assistance.148576/