Optimize 3D

F

Flo_R

Guest
Is there any way to Optimize the Performance for 3D games.
Whenever i am Creating a new 3D object it starts lagging for a short time.
In every 3D object i use this code to create the Model:

model1 = d3d_model_create();
d3d_model_load(model1,"Model.d3d");


Could i make the var "model1" a global variable so there is no need to load the Model the whole time

Thanks for Help
 
-snip-
Could i make the var "model1" a global variable so there is no need to load the Model the whole time
Yes. You probably should make it a global variable or just have one object store all of the models. You basically answered your own question
When you say, "starts lagging for a short time", do you mean the game freezes for a bit? If so, then it would be because you are loading in the model
every time you create that object
 
I

icuurd12b42

Guest
In Studio the d3d model load is pretty slow. so load your models in the boot room in globals while you are showing your logos and stuff
 
Top