NOGStudio / Menyr-Bug-Report

Roadmap of Menyr
12 stars 0 forks source link

[Bug]: Performance problems developing over time/Possible GPU card issue #62

Closed Shadowfallfae closed 1 year ago

Shadowfallfae commented 1 year ago

Contact Details

Shadowfall

What happened?

  1. Noticed that when using the voxel sculpt or paint in Menyr, there would be a couple of seconds where the program freezes between each action. So paint a section of land and when you released the mouse press, the program froze.
  2. At the same time noticed that the program seemed to use the integrated graphics and NOT my Nvidia RTX 3070.
  3. The specification report to be sent to you also listed the integrated graphics card as the GPU and not the 3070.
  4. My son suggested we force the program to use the 3070 rather than the integrated graphics using the Nvidia Control card 3D graphics settings. We did so, but it seemed to make no difference to the performance - still freezing for a second. Alex noted the program was very RAM hungry - using about 10GB of my 32 GB. At the same time, we did an uninstall/reinstall to move the program to my SSD to try and make it a bit faster/not freeze.
  5. Since then, over time, the program 'freezing for a second' has now turned to freezing for several minutes on every Voxel and asset placement action, making it unusable. It does not do this with Storyteller actions. Provided I use the sliders and not the pre-set buttons. The pre-set buttons seem to make some sliders not work from time to time in Storyteller but the program and my computer do not freeze.
  6. I do not know if this is related to the graphics card issue OR to multiple instances of EPIC WebHelper being open when you check processes in task manager, OR some other unrelated reason like reinstalling it on the C Drive. Unfortunately, I only have a single screen and when the program freezes up, I can't alt tab to check the task manager or resource monitor.
  7. I uninstalled and reinstalled Menyr again - moving it back to the D drive without the problem being resolved. So instantly still had long freezes.
  8. I reversed the graphics changes taking Menyr off the Nvidia 3D setting program list but it continued to use the 3060 and not the integrated graphics and continued to freeze. (well trying to as I am not sure - there seems to be something holding my graphics settings selections in Menyr even on a fresh install. So I am not completely sure it's not still trying to use the RTX 3060.
  9. I went through and did an optimisation of both Nvidia GPU and Windows 10 for gaming to fix the resource usage, including increasing my virtual page size to 2 x my RAM - 64 GB of virtual page space on both the SSD and the Hard Drive. Nothing helped.
  10. Alex (my son) looked at the processes using Process Lasso and said that the main Win64_Shipping exe program was touching a few odd programs - three are in screenshots attached using task manager resource monitor but unfortunately I don't have a copy of the 4th one that showed up in Process Lasso.
  11. Sorry guys - now I need to let you take over as I don't know what to do next. Attached are some screen shots of things that might be useful and I will try to attach a dxdiag log for you. 2023-06-28_14-02-09 task manager 2 2023-06-28_14-07-31 about to paint 2023-06-28_14-14-38 Frozen from 2-07 to 2-10 2023-06-28_14-19-37 File location and file 2023-06-28_14-26-10 post asset placement of 1 tree frozen 2-22 to 2-24 2023-06-28_14-32-39 shot of asset placed at 2-22 2023-06-28_14-28-52 2023-06-28_14-31-14 Touching files DxDiag.txt

Attach your screenshots

No response

How did it happened?

Using Menyr as described

What are your performances on Menyr?

A little problematic which has increased dramatically over time.

Which version of Menyr are you using ?

Beta 1

paladiusdarkhelm commented 1 year ago

In speaking with Reveam, we decided I should also put this info here:

It was discovered yesterday that certain conditions exist that can cause the webhelper process(es) to remain open and consume system resources, even after Menyr is exited.

So, with Task Manager open, I noticed that if I fire up Menyr, maybe change some graphics settings or the like, and then decide to exit before creating a map, the initial "helpers" all close out fine. I seem only to get a lingering helper process issue when I exit a map and then exit the application from the main menu.

Shadowfallfae commented 1 year ago

Hi, An update to my original issue.

  1. As paladiusdarkhelm commented above occasionally when I tried to end task when Menyr froze - I found that it was hanging waiting on something. Task Manager couldn't seem to end the task and I had to restart the PC. When I did a restart sometimes there was a message to say that the webhelper was still open.
  2. FYI - There was a discussion by Lamis on the discord about the lengthened time it took to launch the program and how she felt it was related to the number of saved maps you had. As I had been doing a lot of voxel painting/sculpting on the first map I did when it was only freezing for a second after each action I thought that I might have a lot of autosaves. Even though I had done a couple of removals/re-installs of Menyr.

I checked the saved folder. I had 193 autosaves in the autosave folder and 6 UM saves in the top-level folder. I copied the autosaves across to another folder and deleted them from the real autosave folder. I tried Menyr again - no change, still freezing.

However, I then went and did the same for the UM saves and retried Menyr after I had deleted the UM saves from the Saved folder (user\apps\local\UTC\Saved). The program worked beautifully. Almost instant launch and no freezing at all after painting in voxel or placing an asset. I did not test for long, so that is something I can do - or you can - to see if the fix holds or reverses with time and assets placed/sculpt/paint work done.

So...given that it was freezing fractionally from the start of using it I think there was still a GPU problem in that maybe it was hitting my integrated graphics the first time around (as all the evidence said it was) and - even though I reversed what Alex and I did in the Nvidia control panel and did a remove and reinstall of Menyr - the program has now continued to use my RTX 3060 rather than the integrated GPU. (I am wondering if the uninstall does not remove some of the user files and if there is a user preferences/system config file in there that might account for that? Or something in the Registry?)

But the map save (UM) files are a definitely a problem for me and seem to cause huge performance issues. Removing them seemed to fix the problem. Some others may delete their maps and not save them - or simply have only built one map - so have not run across this issue yet.

I did not try putting the autosaves back and seeing if the performance degraded at all, but I have them saved, so I can do that if you like.

Shadowfallfae commented 1 year ago

Sorry I also have the UM map files saved if you need them.

Cheers

MrVinceZ commented 1 year ago

Fix in 0.1.2407: Better memory management when a large number of saves are present

Precision: EpicWebHelper is a sub-program of the Unreal Engine, and the problem has been reported to Epic Game.