Difference between revisions of "Performance Problems"

851 bytes added ,  16:38, 25 December 2012
imported>Wrye
m (Remove top level header.)
imported>WalkerInShadows
 
(One intermediate revision by one other user not shown)
Line 33: Line 33:
#* I have tested the others above, but not this one. However, I have seen it mentioned several times that GetDistance is a CPU heavy function, so I'm including it here.
#* I have tested the others above, but not this one. However, I have seen it mentioned several times that GetDistance is a CPU heavy function, so I'm including it here.
#*--[[User:Haama|Haama]] 17:54, 10 September 2007 (EDT)
#*--[[User:Haama|Haama]] 17:54, 10 September 2007 (EDT)
#* [http://forums.bethsoft.com/index.php?/topic/1145441-does-getdistance-called-every-frame-hurt-frame-rate-or-not Discussion about GetDistance] that seems to imply the function is not so CPU-hungry.


Note that for all of these, they are incredibly fast functions. Even the slowest, GetInventoryObject, can be run 1000 times and the next frame will come up in less than a second. They will only cause problems if run them constantly (every frame or so).
Note that for all of these, they are incredibly fast functions. Even the slowest, GetInventoryObject, can be run 1000 times and the next frame will come up in less than a second. They will only cause problems if run them constantly (every frame or so).
Line 47: Line 48:
== Low-Level Processing ==  
== Low-Level Processing ==  
Avoid low-level processing for as many creatures and NPCs as possible. Use the "No Low Level Processing" option to keep them from processing their AI unless the player is in the same cell.
Avoid low-level processing for as many creatures and NPCs as possible. Use the "No Low Level Processing" option to keep them from processing their AI unless the player is in the same cell.
Note: If an NPC never leaves an interior cell, then this should be ticked, but if their AI packages has them moving between interior cells or travelling between interior and exterior or travelling from one end of a city to another (or further) then this should not be ticked, otherwise the NPC will never be where they're meant to be, they'll always be in the cell they are initially placed in. They would only leave that cell to follow their AI if you then enter that cell, but as soon as they leave the cell they will be dropped from memory again and so won't reach their destination unless the player follows them the whole way. (Thanks Vorians!)


[[Category:Troubleshooting]]
[[Category:Troubleshooting]]