-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
laggy viewport #89
Comments
Thank you for the detailed report. I'll prepare some tests to see if we can find where the issue is. Meanwhile, some things that would be useful to check:
|
Hi! Thanks for your suggestion, I changed my monitor resolution from 4k to 2k and now it runs smooth like a butter. and the gpu does not reach 100% if I change resolution from 4k to 2k. The only weird thing is that whatever scene it loaded, either an empty box or others, the first render is always a bit slow, like 8 seconds, then after that, it will render smoothly like (1.7 sec/frame). I guess it's just the first time loading will cause it and it doesn't worry me at all. Thanks again for creating this wonderful renderer! |
I'm glad you got it to work smoothly. That said, if the GPU still doesn't reach 100% use there must be a problem somewhere. I'll add a screen percentage setting so at least you don't have to change the resolution of your full system. BTW, the first frame taking longer is indeed because Malt has to initialize resources. It's normal. |
I'm having the same issue and the same solving. But the GPU is GTX1060 6GB so it feels strange to be laggy even if its 4k. Really appreciate the screen percentage setting but still there might be a bug? |
@solid-f38 Yes, this needs a proper solution, but since I can't reproduce it locally I depend on users willing to do some testing and report back until we find what's causing the problem. |
I have added a Viewport Resolution Scale option to the World settings. Could you check if the performance at 4k with 0.5 resolution scale is the same than the performance at 2k with 1.0 scale? |
Thank you for the development! So fast development!! By the way I captured a video about malt working on my PC. Here I'm using a And also Attached the malt log file to this comment. Could this be some kind of help making the performance faster? |
So in your case the GPU is at 100% use. 2021-06-29.17-44-07_Trim.mp4 |
Thank you for the update! By the way, I noticed that in the task manager 2 tasks "Blender" and "Python" is using the CPU and GPU. 2021-06-30.04-22-29.mp4 |
Feels like getting closer to the cause! |
I've uploaded a new test version, this one doesn't draw to Blender at all. For testing it at higher resolutions you can set the resolution scale to a value larger than 1. Like this: 2021-06-30.18-04-08_Trim.mp4Sorry for having you making random tests. I wish I could test this myself. |
Thank you for the update! There's something I felt odd. 2021-07-01.05-29-30.mp4Developing is the real hard part and compared to that testing is like nothing! |
I tested it on a different blend file and remaining GPU usage thing didn't happen on one but happened on the other. 2021-07-01.06-05-11.mp42021-07-01.06-21-41.mp4 |
Forgot to post the log files! |
I took two videos with the console showed. 2021-07-02.02-33-50.mp42021-07-02.02-35-22.mp4 |
Sorry for the late reply (I've been on vacation). I added a new option to the Development branch that allows setting a maximum frame-rate for the Blender viewport (only while Malt is rendering). That way it's possible to ensure Blender doesn't consume too many resources. Could you test setting it to a low value (20, for example) and see if that helps? |
I ran some tests. Highlights: RX580 Graphics Card, Manjaro Linux, Running Latest Development Version of Malt, Screen Size 2560 x 1440 I tested using the advanced line mesh shader. I am showing the GPU maxing out when I force blender to redraw the screen. (Funny Aside: At those frequencies, I can actually hear my graphics card humming like a bad transformer. XD) I set the frame rate cap at 30 FPS, and the window resolution down to .25% If I run it at 50% the system lags pretty hard. Video illustrating the GPU Usage: condensed.mp4Malt Log File First 900 of 32000 lines: |
Could you test the performance of this pipeline? This should fly on any GPU. If it doesn't it must be a core issue with the way Malt interacts with Blender, and if it does we should be able to profile the rendering performance to figure out the issue (I recently added RenderDoc support to Malt). |
I'm so sorry for the late reply. |
Sorry it took me so long to get back to you. Life is certainly busy at the moment. Attached is the log file for the malt session. Here is what I learned: When running malt renderer in the viewport if I make small orbits around Suzy, a few degrees per second, my graphics card will jump up to around 50% usage. It renders silky smooth while panning about like this. If I make larger motions, the system will get a little more frame skippy and the card usage will jump up to 100%. Even still, the behavior here feels more natural than the previous tests that I had done. If I go crazy and just whip the model around, the viewport will go gray for a second and all I will see is the XYZ axis frozen and then it will snap back in a second after it is done calculating. Also this time I noticed the malt window running in the background. It adopts whatever imagery is behind it on the desktop, open windows, plasma widgets, or just the desktop background itself, and it flickers at a very rapid interval. I do not know if this is normal behavior for it or not. Might just be a linux thing. |
Hey! No need to apologize. As I expected, the low performance at 4k is not a rendering performance problem, but a bandwidth problem.
The downside of sending the render result at 8 bits/channel is that Malt would have to do its own color management, but it may be worth it. @BerlinAW I missed it on the first log you posted, but your OpenGL driver doesn't seem to support GL_READ_PIXELS for any texture format. That's why it's so slow. |
I have this issue where the viewport is quite laggy on my 2.93 version. and the render time can vary from 5 seconds to 16 seconds in a simple scene. below is a video showing how the cpu gpu as well as how its lagging. Though there is a video recording running, but when I am not running the video recorder, it still consumes large parts of the cpu/gpu.
https://youtu.be/gB7y88RyOtM
here is a pic showing the render time, I am using the malt sample pack's material.
some other videos demonstrates the issues
render speed at two viewport mode:
https://youtu.be/u-SljNujne0
viewport speed:
https://youtu.be/HD7siSuMRZg
here is a debug log where I opened a simple scene with cube and nothing else but turn around the views.
LOG
(Edit by @pragma37 : Fixed the links and replaced the posted log with an attachment)
The text was updated successfully, but these errors were encountered: