Page 1 of 2

GPU viewport performance

Posted: Thu Sep 03, 2020 12:43 pm
by Sharlybg
After some further testing on this topic here : viewtopic.php?f=4&t=2521 . I think i've finger on something.
The effort is about making GPU viewport responssivness faster.

For the experiment here is the steps.

1__Load some average scene switch to GPU
2__ CTRL+Spacebar in 3d viewport
3__ Use this setting (A) :
Block_size.jpg
Block_size.jpg (8.08 KiB) Viewed 757 times
4__Go back to solid view and tip this setting (B) :
Pixel Size.jpg
Pixel Size.jpg (8.41 KiB) Viewed 757 times
Repeat the operation as much as you want. Then wich setting is more responssive for you ?
Note that the part we want to focus on is first sample and speed while moving arround with the mouse.
I've my conclusion but wann't affect yours.

Re: GPU viewport performance

Posted: Thu Sep 03, 2020 1:16 pm
by Dade
The settings should be correlated with the view port size. You can not have a single setting responsive for any view port size.

Re: GPU viewport performance

Posted: Thu Sep 03, 2020 1:40 pm
by Sharlybg
Dade wrote:
Thu Sep 03, 2020 1:16 pm
The settings should be correlated with the view port size. You can not have a single setting responsive for any view port size.
Yes it the case just made those test with same viewport size. Anyway one of the settings is much more responssive even considering primary sample.

Re: GPU viewport performance

Posted: Thu Sep 03, 2020 5:28 pm
by Sharlybg
Anyone else see a difference between the 2 settings in the first post ?

Re: GPU viewport performance

Posted: Thu Sep 03, 2020 6:22 pm
by JulianoLisboa
Wow, much faster option B.

Re: GPU viewport performance

Posted: Thu Sep 03, 2020 6:28 pm
by Sharlybg
Dade wrote:
Thu Sep 03, 2020 1:16 pm
The settings should be correlated with the view port size. You can not have a single setting responsive for any view port size.
I mean Dade even if option B is adding less pressure after first samples compared to A. The fluidity during first sample in option B is simply from another level and this almost no matter how high you set block size in option A.

So for me there is a weird thing we can improve here.

Re: GPU viewport performance

Posted: Thu Sep 03, 2020 6:31 pm
by Sharlybg
JulianoLisboa wrote:
Thu Sep 03, 2020 6:22 pm
Wow, much faster option B.
Yes i felt exactly the same :idea:

Re: GPU viewport performance

Posted: Thu Sep 03, 2020 6:40 pm
by Dade
Sharlybg wrote:
Thu Sep 03, 2020 6:28 pm
I mean Dade even if option B is adding less pressure after first samples compared to A. The fluidity during first sample in option B is simply from another level and this almost no matter how high you set block size in option A.

So for me there is a weird thing we can improve here.
You are rendering 2x2 less pixels: it is 4 times faster.

Re: GPU viewport performance

Posted: Thu Sep 03, 2020 9:08 pm
by Sharlybg
You are rendering 2x2 less pixels: it is 4 times faster
Yes of course but it is not about render speed. But responsivness during navigation and user input.

If i follow you rendering at 2x2 should feel responssive like 16x1 ( block size = 16 ; pixel size = 1)
Try yourself just rotating in the scene don't let thing settle down just move as quick as you can.
Even 32x1 ( block size = 32 ; pixel size = 1) can't match 2x2 setting.

No matter the block size as soon as pixel size is set to 1 viewport navigation is laggy. I insiste on navigation responssivness.

Is possible to do inside luxcore code 2x2 during input and navigation and switch back to 8x1 automatically right after ?

Re: GPU viewport performance

Posted: Thu Sep 03, 2020 11:35 pm
by Dade
Sharlybg wrote:
Thu Sep 03, 2020 9:08 pm
Is possible to do inside luxcore code 2x2 during input and navigation and switch back to 8x1 automatically right after ?
It is but it is a parameter BlendLuxCore doesn't expose (the number of samples it will take the transition from block to pixel rendering).