06.07.2016, 15:26
Quote:
You misinterpreted literally everything in my reply. xD
I was comparing memcpy with "array1 = array2;". Not with and without a loop. Obviously, in that case loop would be slower. Let me make it more clear on the terms I used. Normal Loop Code:
for(new i = 0; i < 50000; i ++) array[i] = 0; Code:
memcpy(array, dummy, 0, 50000*4); Code:
array = dummy; |
You are kinda of a freak with performance and all that, it isn't always about performance in a production server, it's also about functionality, which should be put first. Without functionality and good gameplay, performance is nothing.
It's good that you share your tips and all that, but it would be nice to see you do something else. As long as performance is decent or reasonable, then I don't see the problem in leaving it like that. Server owners should focus more on the functionality.
This is all for server owners anyway.