I am making a 3d RPG but i have allot of problems with the game speed when i am on a normal computer.
My computer ad home is a quad core with a fast geforce card, so when i am making the game i have no lag and a steady 30 FPS.
But when i am at school i have allot of lag. I will explain some several methods iam already trying to use:
Create event camera:
d3d_start() d3d_set_hidden(true) d3d_set_culling(true) texture_set_interpolation(false)
just a normal projecten, no _ext:
d3d_set_projection(from_x,from_y,from_z,obj_char.x,obj_char.y,obj _char.z+20,0,0,1)
i also load several models and textures in a create event of my controller (so not in a draw event):
global.tex[50] = background_get_texture(bg_trainingsuit); global.model_dagger = d3d_model_create(); d3d_model_load(global.model_dagger,'models/test.gmmod');
And when i draw a simple wall i use (draw event):
d3d_draw_block(x-20,y-5,z,x+20,y+5,z+height,global.tex[7],1,1)
I dont't use FOG because my skybox will be very ugly, and thats why i use this code:
Step event any object:
if(distance_to_object(obj_char) > global.view)
{
visible = false
}
else
{
visible = true
}Because it is a RPG i want a big room with allot of objects like tree's, plants, and bushes.
But when i am at a normal computer like a simple dual core laptop with a old geforce, or a pentium 4. Sometimes i have terrible lag! And sometimes my D3D object are not drawing the way they draw normally. (i have this only at older computers)
My questions:
1. Do i need to use a external DLL for my 3D and which is the best to use.. (so dont use D3D functions)?
2. Are there other options to draw my d3d code instead of the draw event like my wall?
3. Do i need to use culling like i do now?
4. Maybe you have other tips for my game speed
Eloy



Find content
Male
