Improving 3d game's perfomance
Posted 06 July 2012 - 03:43 PM
Posted 06 July 2012 - 06:31 PM
Change texture to 512x512 or some other power of 2. (Not a performance issue, but once you find out why you will abase yourself in front of me in thanks for my wisdom)
Hi there, I am making a 3d game similar to minecraft, in which I made the floor made by a large amount of boxes with the same size. All of them have the same texture which is a partial part of a 600x600 texture. So there is many objects, which one is a box.
Since your floor rarely changes, make a d3d model out of it. There are other methods of optimization, but in GM it's usually far better to just let the graphics card do the work.
Most people will read that part of your post as: "Derp"
In camera I used d3d_set_projection_ext to reduce the amount of drawing boxes by the distance
d3d does NOTHING to change how many drawing functions are called. If you're drawing 5000 boxes nearby, you'll draw 5000 boxes far away unless YOU specifically change that.
Posted 06 July 2012 - 11:59 PM
I would go as far to say drawing one 2000 poly model is faster than drawing one 12 poly block using d3d_draw_block(...).
Posted 08 July 2012 - 12:34 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users