Hi all,
Another odd problem here... Is there a way to load objects fast that I'm missing?
Well... To be precise... Duplicate them. I'm trying to create a scene built out of 5 different models. Each a .X file that is between 2kb and 73kb using jpeg textures that are all under 300kb each. These 5 items are being duplicated multiple times to create the in-game world using the CLONE OBJECT statement.
In total there ends up being 400 copied objects, with a total polygon count of around 140,000 and while the engine is running I am executing a function to hide objects that are either too far away from the viewer or not in the screen at the time. While the objects are being loaded before the main loop, however, they are being hidden straight away to try and conserve memory.
However, despite the model files and texture files being quite small, and despite the textures being small, and despite the polygon count being more than acceptable, the program still takes about 5 to 7 minutes to go through and clone all of the objects.
I have run into a similar problem before, but I found out that I had put a SYNC command in the loop that loads up all of the objects, which was slowing it down. However that is not the case this time around.
Playing around with it, it's not the loading in of the model files that slows it down, but the function that clones them all.
Also, I should add that it's not because I'm on a slow computer. I'm running the latest Alienware m17x Mk3 with a 3.33GHz quad core i7 processor, 1.5GB nVidia GTX 460M and 8GB DDR3 memory.
Has anyone had this same problem? If so, I'd love to hear your thoughts on why it's going so slow...
As always, if you need more info, please let me know and I'll do my best.
Malevolence: The Sword of Ahkranox
The infinite RPG
http://www.msoa-game.com