Replies: 9 comments 3 replies
-
compile mode: Release |
Beta Was this translation helpful? Give feedback.
-
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! |
Beta Was this translation helpful? Give feedback.
-
On some systems the v-sync slows down the execution. Can you try to turn this off? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
That's quite strange. I never had issues like that on my machine. |
Beta Was this translation helpful? Give feedback.
-
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 :-) |
Beta Was this translation helpful? Give feedback.
-
Since this problem is probably just a problem on your system, I moved it from issues to a discussion. |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions