box2d for windows phone 8 using parallel patterns library

Discuss issues specific to miscellaneous ports of Box2D
m4koivis
Posts: 2
Joined: Fri Jul 10, 2015 1:49 am

box2d for windows phone 8 using parallel patterns library

Postby m4koivis » Thu Aug 27, 2015 4:25 am

Hi,
I just published Box2d windows phone 8 lib in https://github.com/MKoi/box2d-for-windows-phone-8/.
The project includes some experiments with parallel patterns library (see https://msdn.microsoft.com/en-us/library/dd492418.aspx) in b2ContactSolver.cpp.
Basically that means replacing "for (int32 i = 0; i < m_count; ++i)" with "concurrency::parallel_for(0, m_count, [&](int32 i)" in selected places.
parallel_for also required using thread-specific return values (concurrency::combinable<float>) instead of single result value in SolvePositionConstraints.

- Mikko

Return to “Miscellaneous”



Who is online

Users browsing this forum: No registered users and 2 guests