Things to Optimise Besides Speed and Memory
#1

http://prog21.dadgum.com/145.html

Since people here love "optimisation" so much.
Reply
#2

The most beneficial optimization IMO: script organization. Can't tell you how many times I've had code that I made a ways back; but forgot to make a note where all of its portions are.
Reply
#3

Best tip is: Follow Y_less & Slice step's, try understand his codes and do it by yourself. Then, you can move on to better steps.
Reply
#4

I see this situation as follows: Scripters that program by funny, virtual fame or hobby tend to be looking for optimisation at all the time(trying to "fix" any code even if it is perfect), since that they have nothing more productive to do due to lack of creativity, courage, determination.
Reply
#5

Quote:
Originally Posted by CyNiC
View Post
I see this situation as follows: Scripters that program by funny, virtual fame or hobby tend to be looking for optimisation at all the time(trying to "fix" any code even if it is perfect), since that they have nothing more productive to do due to lack of creativity, courage, determination.
You managed to summarize my lack of creativity for new features and compensating it by optimizing with just one sentence.

Reputation.
Reply
#6

I try to optimise my code for the end user (and maintenance) as much as I do for bandwidth usage and file access.

For instance I had a 1 second timer for a distance clock and timer for races, but it looked shit! So I used OnPlayerUpdate and it looks a lot better, like a "real" game as the timer shows Milliseconds and the fast distance updates look... just... it's hard to explain but because it's faster it just looks more polished and fancy!

So I've started using OnPlayerUpdate a hell of a lot now for loads of things, mainly GUI just so things look nice for the players! And if they have bad ping and lag a bit? I guess it's their problem sort of... (Bad attitude?)


Anyhow, I understand what you mean, I will try to take more things into account while making things (I tend to go for amount of features for the players first then optimisation second)
Reply
#7

Good read, though I've gotta say that there's a big trend out there for you all to optimize code more and more to when it even becomes pointless.

"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil" - Donald Knuth

http://prog21.dadgum.com/106.html
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)