Even though the object was created in STACK using alloca apparently the method call via pointer in lambda function still takes quite long since the encoder in MENU started to lag again It gets initialized before main() now this fixed the lag
Even though the object was created in STACK using alloca apparently the method call via pointer in lambda function still takes quite long since the encoder in MENU started to lag again It gets initialized before main() now this fixed the lag