[Tutorial] New Code Optimizations
#15

Quote:
Originally Posted by Gammix
View Post
That's the reason why I don't care about speed, I rather is more practical and concerned about the efficiency of gameplay and try reducing lag.

Optimizing such like using individual vars from arrays doesn't matter.

And I would have answered the same to Y_Less as well.
Hmm, can I know how you manage to improve the efficiency and reduce lag without optimizing your code. Do you know who Y_Less is?

He was the best programmer here at the forums unfortunately left us.

There was a thread written by Y_Less titled "Code Optimizations" which has been deleted since he left the community. No one hasn't re-posted it till now.

But just to let you know there were at least 25 optimization tricks in that thread. Even the ones like

Code:
if( (variable = func()) == 1) 

VS

variable = func();
if(variable == 1)
and many more!

Most of them who claimed that they make negligible improvements have apologized for the false claims. I have provided you the speed tests, what more do you want? It is obvious from the tests that most of the tricks improve the performance of the code in multiples like 3x,4x,5x,6x,7x.

Quote:
Originally Posted by Macluawn
View Post
I'm not sure if that is the best possible implementation, but I suppose you're right, I forgot about the virtual machine.
The example I gave was from a test in c++ when checking the performance of a native function vs a more advanced implementation.
lol hmm I see
The efficiency of libraries and C++ code will be almost the same provided the programmer knows how to write efficient code.

When I try to re-invent the wheel in C++ just to optimize, it never works because the C++ libraries are written by professionals and are very efficient whereas I am not that professional in C++.
Reply


Messages In This Thread
New Code Optimizations - by Yashas - 04.07.2015, 04:01
Re: New Code Optimizations - by Gammix - 04.07.2015, 09:59
Re: New Code Optimizations - by maximthepain - 04.07.2015, 10:33
Re: New Code Optimizations - by theYiin - 04.07.2015, 10:36
Re: New Code Optimizations - by Cypress - 04.07.2015, 10:42
Re: New Code Optimizations - by sammp - 04.07.2015, 10:51
Re: New Code Optimizations - by sammp - 04.07.2015, 10:59
Re: New Code Optimizations - by Gammix - 04.07.2015, 11:53
Re: New Code Optimizations - by Yashas - 04.07.2015, 15:49
Re: New Code Optimizations - by PT - 04.07.2015, 16:04
Re: New Code Optimizations - by Macluawn - 04.07.2015, 16:09
Re: New Code Optimizations - by Yashas - 04.07.2015, 16:17
Re: New Code Optimizations - by Gammix - 04.07.2015, 16:40
Re: New Code Optimizations - by Macluawn - 04.07.2015, 16:41
Re: New Code Optimizations - by Yashas - 04.07.2015, 16:53
Re: New Code Optimizations - by Macluawn - 04.07.2015, 16:56
Re: New Code Optimizations - by Yashas - 04.07.2015, 16:59
Re: New Code Optimizations - by Lynn - 04.07.2015, 17:17
Re: New Code Optimizations - by rymax99 - 04.07.2015, 17:52
Re: New Code Optimizations - by Gammix - 05.07.2015, 02:31
Re: New Code Optimizations - by Tamer - 05.07.2015, 19:50
Re: New Code Optimizations - by Stanford - 06.07.2015, 03:07
Re: New Code Optimizations - by Cypress - 06.07.2015, 20:31
Re: New Code Optimizations - by Yashas - 07.07.2015, 01:57
Re: New Code Optimizations - by Sime30 - 07.07.2015, 17:58
Re: New Code Optimizations - by kristo - 07.07.2015, 18:09
Re: New Code Optimizations - by Sime30 - 07.07.2015, 18:59
Re: New Code Optimizations - by JokeyL - 25.01.2016, 16:38
Re: New Code Optimizations - by iKarim - 25.01.2016, 16:45
Re: New Code Optimizations - by vannesenn - 16.06.2016, 23:38
Re: New Code Optimizations - by Crystallize - 16.06.2016, 23:43
Re: New Code Optimizations - by Gammix - 16.06.2016, 23:43
Re: New Code Optimizations - by Vince - 17.06.2016, 09:37
Re: New Code Optimizations - by Gammix - 17.06.2016, 10:02
Re: New Code Optimizations - by vannesenn - 17.06.2016, 14:38
Re: New Code Optimizations - by vannesenn - 17.06.2016, 21:23
Re: New Code Optimizations - by Yashas - 20.06.2016, 17:22
Re: New Code Optimizations - by Yashas - 21.07.2016, 13:23
Re: New Code Optimizations - by Kaperstone - 15.01.2018, 21:21
Re: New Code Optimizations - by Yashas - 31.01.2018, 17:42

Forum Jump:


Users browsing this thread: 5 Guest(s)