Hi,
I forgot to mention one more thing. When your script is running, press F4 twice to display detailed statistics about the frame rate.
The "Update" time is the amount of milliseconds your script is taking to update (i.e. handle callbacks and timers).
The "Cull" time is the amount of milliseconds it is taking to preprocess the scene for drawing (i.e. perform view frustum culling).
The "Draw" time is the amount of milliseconds it is taking to draw a frame.
This way you can tell if the slowdown is from the script logic, or from drawing the models.
|