Replies: 9 comments 3 replies
|
compile mode: Release |
|
It seems that omp doesn't work well, and these are "BarDemo" 's output when use It looks like stange when substep cost 133ms. So I delete maybe that is omp's fault or wrong use of omp, but I'm not familer with omp. and this is my cpu : 12th Gen Intel® Core™ i7-12700 × 20 Tnanks very much! |
|
On some systems the v-sync slows down the execution. Can you try to turn this off? |
It semes that doesn't reduce the random large "time simulation step" when I turn off the v-sync on my ubuntu system, and other's openGL program works well on whether it's in open or closed. |
|
It's really hard to say where is the problem. The solver performs a fixed number of iterations, so therefore the solver should take approximately the same time in each step. Just to be sure that the problem does not come from the visualization. Could you try to turn this off? Just comment out lines 60-64 (the MiniGL commands) and instead add a loop in which you call timeStep() until the time is greater than the end time of the simulation. |
Thanks for you reply , I have tested time cost on different settings (101 and, max time in 101x8 = 808 outputs result: Did openMP encounter resources competition during thread scheduling? |
|
That's quite strange. I never had issues like that on my machine. |
Yes, this is a very strange problem, and I will continue to check if there is a solution. Thank you again for your help and outstanding work. This is a great PBD project :-) |
|
Since this problem is probably just a problem on your system, I moved it from issues to a discussion. |

Uh oh!
There was an error while loading. Please reload this page.
Thanks for your great work, I have compared this repo on different GPU s, Its seems that the demos run slowly on RTX 3080, but runs faster on 1060Ti, the simulate time of demo did not grow linearly, but intermittently, even if all threads are used to simulate.
All reactions