Thalassicus Posted December 16, 2009 Share Posted December 16, 2009 There's no way to have a script run less frequently than once per frame, is there? One of my scripts I only really need to run once per game hour, and it seems inefficient to check the hour several dozen times per second. Link to comment Share on other sites More sharing options...
David Brasher Posted December 16, 2009 Share Posted December 16, 2009 Begin Gamemode blocks are really weird and not what I expected. They are not like what I learned when I first started programming. I wish it was set up differently, so that it was easy to have more DoOnce lines automatically, but that is not how Oblivion Scripting language is set up. The good news is that today's computers are so amazing powerful that it is absolutely unbelievable. You can use all sorts of sloppy Begin Gamemode blocks making the computer waste lots and lots of effort checking everything under the sun over and over, and the gamer will never even notice the performance drop. Inefficient scripts do not seem to effect performance. The big culprits are grass, more than eight NPCs per cell, and light sources with intersecting light radius problems. Don't worry be happy! :) Link to comment Share on other sites More sharing options...
Thalassicus Posted December 16, 2009 Author Share Posted December 16, 2009 You're definitely right about those three sources of lag; they're the same ones I noticed. And yeah, scripts don't seem to cause a big problem... but coming from an assembly/c/c++ background where efficiency is so heavily emphasized, I cringe at checking if it's daylight 3600 times per minute. :D Oh, for the want of a sleep() system call! Link to comment Share on other sites More sharing options...
Recommended Posts