Closed CiprianN23 closed 2 years ago
With a little bit of testing, seems like we found the culprit The reason it is slower relies on two things:
That being said, on release build, with a connected player, open.mp is 2x faster than samp (you can try it yourself), I guess it's a fine tradeoff to improve a logical/reasonable condition and sacrifice (not really, no one does that in a real world example) the other. Therefore, the answer to your not-asked question is, no open.mp is not slower, it's your code that is not a good example for testing because that player doesn't exist in the first place and you sending 1 million messages to an invalid player (never happens in a real world situation)
Makes sense now. Thank you
Description
I wrote a basic test for fun and decided to run on both sa-mp and open.mp and i noticed on open.mp it runs maybe 30 times slower
How to re-produce this behavior difference
Relevant log output
sa-mp
open.mp
open.mp server version
open.mp public beta 5
Operating system or distribution
Windows 10 Pro 21H2 19044.1766
Contact information
Banditul#1549
Additional Information
Using an Intel i5-4460 3.4GHz