Performance

Version:3.8.1.1695
Seting:
Instances:1,All file protection false.
A:Complexity 0
B:Complexity 100

B has more fps than A. Why?


Vt:

Video:
https://streamja.com/aNEpz
libmmd.zip (1.81 MB)
Release.zip (2.99 MB)

Because complex handlers were optimized.

Cant this optimization be used without turn on complexity?

Several simple handlers (complexity = 0%) work like this:

handler1
jmp handler2
handler2
jmp handler3
...
handlerN
jmp next_handler

Complex handler that contains handler1…N works like this:

handler1
handler2
...
handlerN
jmp next_handler

So the complex handler doesn’t load addresses of handler2..N and it works faster than sum of handler1..N.