Optimize ofxBox2D performances with OpenMP under Ubuntu 16.04

Hello,

I need to find a way to optimize ofxBox2d for a project.
Everything works for now but it is quite laggy when dealing with 500+ boxes

I thought about using OpenMP but i am not sure i can optimize the app without modifying the addon itself

Any suggestion ?

Also I was able to use omp with Qt but how do you setup for make ?

I tried to add

PROJECT_CXXFLAGS=-fopenmp

or doing a

make USER_CXXFLAGS=-fopenmp

but non seems to work

I did a

make CXXFLAGS+=-fopenmp LDFLAGS+=-fopenmp

seems ok

now i need to know how to optimize…