GPU viewport performance

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

GPU viewport performance

Post 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 2833 times
4__Go back to solid view and tip this setting (B) :
Pixel Size.jpg
Pixel Size.jpg (8.41 KiB) Viewed 2833 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.
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: GPU viewport performance

Post 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.
Support LuxCoreRender project with salts and bounties
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: GPU viewport performance

Post 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.
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: GPU viewport performance

Post by Sharlybg »

Anyone else see a difference between the 2 settings in the first post ?
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
JulianoLisboa
Posts: 146
Joined: Sat Feb 22, 2020 3:29 am

Re: GPU viewport performance

Post by JulianoLisboa »

Wow, much faster option B.
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: GPU viewport performance

Post 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.
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: GPU viewport performance

Post by Sharlybg »

JulianoLisboa wrote: Thu Sep 03, 2020 6:22 pm Wow, much faster option B.
Yes i felt exactly the same :idea:
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: GPU viewport performance

Post 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.
Support LuxCoreRender project with salts and bounties
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: GPU viewport performance

Post 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 ?
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: GPU viewport performance

Post 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).
Support LuxCoreRender project with salts and bounties
Post Reply