Why do all objects not apear at initial start of game?
by arteria3d · in Torque Game Engine · 02/05/2005 (6:28 am) · 4 replies
I have an odd problem. When my level starts, not all the objects appear. It take around 5 secs for all to come on... sometimes not even until the player moves. Is it because of the ammount of object i have? It has only started to happen since the levl has been totally filled out with objects
About the author
Owner of uk based Ltd company ArteriaMediaLtd. with a trading name of Arteria3d Website;arteria3d.com
#2
02/05/2005 (8:24 am)
It takes a few milliseecond to seconds for all the objects to be ghosted to the client. The more objects, the longer it will take
#3
02/05/2005 (9:04 am)
Dave that is a good idea - about havent an extra length of time on the loading screen. Also if i wanted to move exisiting objects i have placed in the editor into C code, could i simple copy the position, rotation information etc - and then work it into C.. Now for my next question, - i have a basic knowledge of C - could u show some kind of implementation code - or is it very difficult?
#4
If you are comfortable with C, you will probably have an initial understanding of the engine side of things that is better than mine. However, I personally am unable to give you any accurate representations of code.
Can anyone else out there post some quality code?
02/05/2005 (9:55 am)
To be completly honest, I'm familiar with TorqueScript, however I just started getting into the engine side of things (I've spend 2 weeks just trying to get an object to rotate in an engine.. believe me, this code ain't pretty!)If you are comfortable with C, you will probably have an initial understanding of the engine side of things that is better than mine. However, I personally am unable to give you any accurate representations of code.
Can anyone else out there post some quality code?
Associate Dave Calabrese
Cerulean Games
I'm actually having the same problem, and I think there are 2 answers:
1.) Move the drawing of these objects into your engine source, so that it will cache them better then place instances of them on every tick instead of every 100 milliseconds.
2.) Get the general time that it takes for everything to appear, and add this to your loading screen, so that the player dosen't even see the level until after everything has finished loading into the world.
-Dave C.