Archived

This topic is now archived and is closed to further replies.

Xzibit

Im stuipd help

Recommended Posts

what would i add in my code to make it run faster? explain to me im stuipd lol --------------------------- X to da Z!

Share this post


Link to post
Share on other sites
lol

I''m not even gonna bother, since this is probably a bad clone of the "oGL SUX" thread.
If not, go read that one, it might give you some answers.




return 1;

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
enter_secret_very_fast_mode(M_PI/32);

just to fool you microsoft doesn''t include M_PI in their math.h

stupid M$.

Share this post


Link to post
Share on other sites
Nope just wanted to know i read something on NeHes site about it making it faster i tryed to do it and it didnt work well with my compiler.. so just wondered

---------------------------
X to da Z!

Share this post


Link to post
Share on other sites
a // per line speeds that line up 100 % ;p

try inlining some important functions.. or even write them in ASM..

cya,
Phil

Visit Rarebyte!
and no!, there are NO kangaroos in Austria (I got this questions a few times over in the states

RAW!

Share this post


Link to post
Share on other sites
After you inline them make sure to do this (if you''re using MSVC):
Project->Settings->C/C++
Set Category to Optimizations
Set Inline Function Expansion to Any Suitable

"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
Resist Windows XP''s Invasive Production Activation Technology!
http://www.gdarchive.net/druidgames/

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
get rid of statements like x*2 and replace them with x+x etc. If you use vc++ or borland turn on optimization.

Share this post


Link to post
Share on other sites