Just Another Particle Engine Demo

Started by
12 comments, last by Sphax 20 years, 8 months ago
Well in this case nothing is hardcoded in my code since all the system parameters can be accessed trough methods of the class (i''m trying to do good oop design, but it''s not easy and the danger is to spend more time in the design then in the coding ).

I have optimized the code already, and cann''t figure where i could optimize now :

- I use vertex buffer in place of "direct mode"
- I don''t create new particles, instead i create a particle array at the initialisation and then reuse dead particles (so no new/delete)
- i have a particle manager class that does all the redundant stuffs that each system needs (calculating the modelview matrix invert for example) so those stuffs are calculated only once instead of one per system.

But obviously there''s still something wrong , i''ll think about it ...


Sphax
Advertisement
It''s asking me for a login name and password.
Billy_Lee.read(Original_positing.line(3));
How do I set my laser printer on stun?
Billy_Lee.slap_attack(himself);

This topic is closed to new replies.

Advertisement