V3.2.3 Taking longer to render

Report crashes, strange behaviour, or apparent bugs
tmalheiro
Posts: 29
Joined: 27 Nov 2015, 22:53

V3.2.3 Taking longer to render

Post by tmalheiro »

Hi,

After updating VREP to version 3.2.3 (PRO EDU) I have noticed a lower performance in rendering, comparing to version 3.2.2.
Up to version 3.2.2, the rendering of the scene in my computer was taking 8 to 10ms.
With version 3.2.3, the rendering is consuming 30ms.
These values are the ones that appear in app title.

This happens in the same computer, with same scene.

Additional info:
For the simulation I am working with, I need to work with real-time mode enabled.

With 3.2.2 version:
the dynamics calculations passes (10) are taking 30ms to run,
Scripts executed: Non threaded 13 (34ms), running threads: 0 (0ms). I have threads for processing UI, from time to time it shows 1ms.
simulation time does not lags behind real-time (it sometimes does lags a bit, but vrep can quickly catch up).

Enabling threaded rendering I got same behavior

With version 3.2.3
the dynamics calculations passes (10) are taking 30ms to run (OK)
Scripts executed: Non threaded 13 (34ms), running threads: 0 (0ms). I have threads for processing UI, from time to time it shows 1ms.
simulation time LAGS behind real-time. In 60s simulation, it lags 15s.

Enabling threaded rendering, I got the oscilation information in Information TExt:
Scripts executed: Non threaded 13 (34ms), running threads: 0 (0ms).
or
Scripts executed: Non threaded 13 (64ms), running threads: 0 (31ms).

cannot tell for sure the values (they change very quickly), but are about those
Simulation also lags behind real-time 15s in 60s running.

Is the running threads time taking into account the rendering time?
Why does it seems that nonthreaded time is being affect by rendering?
Does while rendering the objects are being locked for read and thus simulation is stalled? (but now the information is shown and previously was not?)

Note
OS: Windows 10 Pro, x64.

Thanks,
Tiago

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: V3.2.3 Taking longer to render

Post by coppelia »

Hello Tiago,

is it possible that you had different display settings with previous version?
You can try to modify the settings here.
Try to play with VBO operation and/or Use glFinish when rendering a page.
Because we haven't changed anything related to rendering, since release 3.2.2.

Cheers

tmalheiro
Posts: 29
Joined: 27 Nov 2015, 22:53

Re: V3.2.3 Taking longer to render

Post by tmalheiro »

Hello,

Thank you for the help.
In previous version I didn't changed any display settings.
I have changed VBO operation but it had no visible effect.
Changing glFinish when rendering a page made it worst, taking 84ms to render.
Making all possible combinations of VBO and glFinish, the result is the same as changing only the glFinish.

Reinstalling again the 3.2.2 version, I get the rendering time back to 8 ms...

I have also two plugins installed. Although they mostly do only get/set of joints and get objects position and orientation, I have disabled them. Nothing changes!

In the meantime, I have installed V3.2.3 on other computer, and I get the same overall behavior.
V3.2.2 takes 20ms and V3.2.3 takes 60ms.

thanks,
tiago

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: V3.2.3 Taking longer to render

Post by coppelia »

Ok, we will have to look into this.
Thanks for reporting this.

Cheers

tmalheiro
Posts: 29
Joined: 27 Nov 2015, 22:53

Re: V3.2.3 Taking longer to render

Post by tmalheiro »

Ok,
Thank you!
Let me know if you need any other information, or the scene.

cheers,
tiago

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: V3.2.3 Taking longer to render

Post by coppelia »

Yes, thank you, please send us the scene.

Cheers

tmalheiro
Posts: 29
Joined: 27 Nov 2015, 22:53

Re: V3.2.3 Taking longer to render

Post by tmalheiro »

It seems that the contact page points to use the forum...
Where can I attach a file to send it privately to you?

cheers,
tiago

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: V3.2.3 Taking longer to render

Post by coppelia »

On the contact page, there is an email address that you can use.

Cheers

hypnosfeel
Posts: 22
Joined: 03 Mar 2014, 16:05

Re: V3.2.3 Taking longer to render

Post by hypnosfeel »

I have the same problem. With the same scene in the same computer, vrep 3.2.3 gets stuck while vrep 3.2.2 runs smoothly.

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: V3.2.3 Taking longer to render

Post by coppelia »

Hello again,

we have found the reason for the slowdown: as it seems, the Vertex Buffer Objects (VBO) are never used in last V-REP release (i.e. V3.2.3, rev1), even if enabled in the user settings. We have corrected for that bug, and will try to update the binaries in the next few days.
Thanks a lot for mentioning this.

Cheers

Post Reply