RegisterForSingleUpdateGameTime and stress on the game

Post » Fri Mar 28, 2014 9:35 pm

I want to use

Event OnUpdateGameTime()

to toggle some parent objects on/off according to the day/night cycle. How much stress would be placed on the game engine if I used

RegisterForSingleUpdateGameTime(12)

to poll the game time every 12 game hours?

User avatar
Tanya Parra
 
Posts: 3435
Joined: Fri Jul 28, 2006 5:15 am

Post » Fri Mar 28, 2014 12:28 pm

It shouldn't cause much overhead. The script will be dormant that whole time so it won't be taking up any resources. However, you may want to keep in mind that simply updating every 12 hours with that method may not work as intended, since OnUpdateGameTime() will be delayed until after the player sleeps/waits/etc. It may throw off your timing cycle if that matters to you.

User avatar
Rodney C
 
Posts: 3520
Joined: Sat Aug 18, 2007 12:54 am


Return to V - Skyrim

cron