Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Bug Reporting => [Max] Resolved Bugs => Topic started by: pokoy on 2015-08-06, 13:54:35

Title: Interesting Matedit and Viewport performance behaviour - please test
Post by: pokoy on 2015-08-06, 13:54:35
A small interesting thing I just came across.

I have a camera animation in a static scene. The material editor (classic) is filled with some of the scene's materials, Corona is set as main and Matedit renderer.
I am getting interesting results on how the playback in the viewport performs based on the Matedit renderer:

- Matedit opened, Corona set as matedit renderer: playback crawls
- Matedit closed: playback is perfect

Now change the matedit renderer to Scanline.

- Matedit opened, Scanline set as matedit renderer: playback is perfect

Now change the matedit renderer back to Corona.

- Matedit opened, Corona set as matedit renderer: playback is perfect

So, I need to set the Matedit renderer to Scanline and back to Corona again to make sure viewport performance has no hit. If I don't, viewport playback will be very slow.

Any idea why?
Title: Re: Interesting Matedit and Viewport performance behaviour - please test
Post by: romullus on 2015-08-06, 14:21:16
I had similar instance about a week ago (post 1.1 build). Single sphere has CoronaMtl applied with gradient ramp in diffuse slot. I turned on show in viewport for that gradient ramp and viewport performance dropped to 1-5 fps. Then assigned standart material to that sphere, plugged in that same gradient ramp, turned show in viewport on and fps was in range of hundreds. After scene reset i wasn't able to reproduce it, hence didn't reported.
Title: Re: Interesting Matedit and Viewport performance behaviour - please test
Post by: maru on 2015-08-06, 14:50:04
I could not reproduce any of these, fps perfectly fine with mateditor with Corona/Scanline, also checked that one with gradient ramp. Can you provide some more details?
-are there some very hi-poly objects in your scene?
-large bitmaps? max bitmap or corona bitmap?
-what system specs?
-do you have "improve quality progressively" checked or not? (viewport settings)
-what is your max displayed texture resolution? (viewport settings)
-what display mode? shaded? realistic?

by the way, thanks to you I discovered a really nice bug, logging to mantis right away:
Title: Re: Interesting Matedit and Viewport performance behaviour - please test
Post by: pokoy on 2015-08-06, 15:36:12
My specs:

- approx 1 mio faces displayed
- background image applied (but has no effect, tested)
- improve quality progressively checked (how would this work fine with Scanline but not with Corona?)
- max res 2048 everywhere
- realistic, skylight as scene light (realistic or shaded doesn't matter for me, happens in both modes)
- matedit sits on second monitor

Nvidia GeForce GTX 770, Dual Intel E5-2650 v2

Glad you found another bug, kill it!! :)

EDIT
I had this UI thing happen too but couldn't figure out what triggered it. Good catch!
Title: Re: Interesting Matedit and Viewport performance behaviour - please test
Post by: Ondra on 2015-10-22, 20:10:30
Hi,
can you check if this is happening in the latest daily? There were some performance fixes related to material editor.
Title: Re: Interesting Matedit and Viewport performance behaviour - please test
Post by: pokoy on 2015-10-27, 18:36:39
Ok, will test tomorrow.
Title: Re: Interesting Matedit and Viewport performance behaviour - please test
Post by: pokoy on 2015-10-28, 14:48:07
Tested and can't reproduce anymore, playback is same for both Scanline and Corona.