Here is a PreCache function that should work for most cases.
I was getting half the FPS I should be, until I had walked around the entire map. Given that the map is about half a mile wide, and is the smallest map size I would use in the game, this is no small task.
Rendering everything once did not perform the precaching, but rendering once when everything is out of view, and then rendering once with everything in view does the trick. Don't know why:
I was getting half the FPS I should be, until I had walked around the entire map. Given that the map is about half a mile wide, and is the smallest map size I would use in the game, this is no small task.
Rendering everything once did not perform the precaching, but rendering once when everything is out of view, and then rendering once with everything in view does the trick. Don't know why:
Function PreCache() cam=CreateCamera() CameraRange cam,1,10000000 PositionEntity cam,0,5000000,0 RotateEntity cam,-90,0,0 RenderWorld RotateEntity cam,90,0,0 RenderWorld FreeEntity cam End Function