
Originally Posted by
Yamiez
If you dont know how to optimize, stick to one thread untill you learn (Its common sense really).
Just time your operations.
Thats a good way to split each feature into different parts of your code, but still keeping it to 1 thread.
The danger of using only one thread (which is what this sounds like) is making a hyper-thread, eating away processor power and multi-threading is by far the greater choice.
Some tips that may help you:
Check compiler settings
Erase unused/useless code or store it elsewhere (unless you're using code-optimizing)
Tend to your thread(s) and their sleeps
Don't overwrite or make variables over and over unless needed
Check for memory leaks
If able, read whole structs in memory instead of calling multiple RPM's
Update slow old fashioned methods with superior ones
++ more
If you're really interested and not really into ghetto-fixes I'd advice you to read on more pure code related places where people tend to treat their code more gentle.