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
Posts: 2528
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: GPU viewport performance

Post by Sharlybg » Fri Sep 04, 2020 6:48 am

Dade wrote:
Thu Sep 03, 2020 11:35 pm
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).
Just show me wich line i should change in wich file ( with the appropriate suit of string and number ).
Will just want to copy paste new test code line from you and see if it make any difference.
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA

User avatar
B.Y.O.B.
Developer
Posts: 3909
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: GPU viewport performance

Post by B.Y.O.B. » Fri Sep 04, 2020 2:20 pm

These parameters can be found here: https://github.com/LuxCoreRender/BlendL ... ig.py#L218

User avatar
Sharlybg
Donor
Posts: 2528
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: GPU viewport performance

Post by Sharlybg » Fri Sep 04, 2020 3:40 pm

B.Y.O.B. wrote:
Fri Sep 04, 2020 2:20 pm
These parameters can be found here: https://github.com/LuxCoreRender/BlendL ... ig.py#L218
As DADE said here :
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)
Wich setting control number of sample before transition ?

Code: Select all

# Render a sample every n x n pixels in the first passes.
            # For instance 4x4 then 2x2 and then always 1x1.
            definitions["rtpath.resolutionreduction.preview"] = resolutionreduction
            # Each preview step is rendered for n frames.
            definitions["rtpath.resolutionreduction.step"] = 1
            # Render a sample every n x n pixels, outside the preview phase,
            # in order to reduce the per frame rendering time.
            definitions["rtpath.resolutionreduction"] = 1
            """

            # TODO figure out good settings
            # 4, 2, 2 seems to be quite ok for now. Maybe make resolutionreduction dependent on film size later.
            definitions["rtpath.resolutionreduction.preview"] = resolutionreduction
            definitions["rtpath.resolutionreduction.preview.step"] = 2
            definitions["rtpath.resolutionreduction"] = 2
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA

User avatar
Dade
Developer
Posts: 4882
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: GPU viewport performance

Post by Dade » Fri Sep 04, 2020 7:09 pm

Sharlybg wrote:
Fri Sep 04, 2020 3:40 pm
Wich setting control number of sample before transition ?

Code: Select all

            # Each preview step is rendered for n frames.
            definitions["rtpath.resolutionreduction.step"] = 1
It should be this one.
Support LuxCoreRender project with salts and bounties

User avatar
Sharlybg
Donor
Posts: 2528
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: GPU viewport performance

Post by Sharlybg » Fri Sep 04, 2020 9:27 pm

Dade wrote:
Fri Sep 04, 2020 7:09 pm
Sharlybg wrote:
Fri Sep 04, 2020 3:40 pm
Wich setting control number of sample before transition ?

Code: Select all

            # Each preview step is rendered for n frames.
            definitions["rtpath.resolutionreduction.step"] = 1
It should be this one.
This part is commented so i copy past it outside of the string then play with the number but it doesn't affect anything . so not sure about it.

Code: Select all

# TODO figure out good settings
            # 4, 2, 2 seems to be quite ok for now. Maybe make resolutionreduction dependent on film size later.
            definitions["rtpath.resolutionreduction.preview"] = resolutionreduction
            definitions["rtpath.resolutionreduction.preview.step"] = 2
            definitions["rtpath.resolutionreduction"] = 2
            definitions["rtpath.resolutionreduction.step"] = 1000
What i've done (the last line).
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA

Post Reply