Page 1 of 3

New RTPATHOCL synchronization code

Posted: Sun Jun 07, 2020 2:05 pm
by Dade
I have reworked RTPATHOCL synchronization code with the objective to remove UI lag. This work is on "new_rtpathocl_sync" branch.

@B.Y.O.B.: the WaitNewFrame() now takes zero time to be execute (be careful to not eat CPU time with too many refresh now). This should solve the problem of Blender UI lagging when doing view port rendering a complex scenes. Can you try it ?

Re: New RTPATHOCL synchronization code

Posted: Mon Jun 08, 2020 1:25 am
by u3dreal
All works on OSX..

Re: New RTPATHOCL synchronization code

Posted: Mon Jun 08, 2020 5:02 am
by lacilaci
Dade wrote: Sun Jun 07, 2020 2:05 pm This should solve the problem of Blender UI lagging when doing view port rendering a complex scenes
Wow, I hope this will help!

Re: New RTPATHOCL synchronization code

Posted: Wed Jun 10, 2020 9:16 am
by B.Y.O.B.
Sounds good, I'll test it when I'm back at my PC in about one week.

Re: New RTPATHOCL synchronization code

Posted: Wed Jun 10, 2020 3:22 pm
by TAO
Sounds great.

Re: New RTPATHOCL synchronization code

Posted: Thu Jun 11, 2020 10:40 am
by Dade
I merged the branch with the master so it can now be tested by anyone with the next automatic build.

Re: New RTPATHOCL synchronization code

Posted: Thu Jun 11, 2020 11:40 am
by juangea
Does this require changes in the addon or will it work in the next build out of the box?

Re: New RTPATHOCL synchronization code

Posted: Thu Jun 11, 2020 1:35 pm
by Dade
juangea wrote: Thu Jun 11, 2020 11:40 am Does this require changes in the addon or will it work in the next build out of the box?
It should work out of the box, you may have somewhat the opposite problem: too many screen refreshes because they are not timed anymore.

Re: New RTPATHOCL synchronization code

Posted: Thu Jun 11, 2020 1:37 pm
by Dade
BTW, is there any interest in adding CPU (i.e. hybrid => CPU+GPU) support for RTPATHOCL ? It may be helpful on high end CPUs where the CPU is about as fast as the GPU (i.e. RTPATHOCL is currently GPU-only rendering).

Re: New RTPATHOCL synchronization code

Posted: Thu Jun 11, 2020 5:26 pm
by TAO
It could be a good thing, especially with new high core CPUs generation.
I like the idea.