Log in

View Full Version : Fantasy Grounds Unity Not Responding



D4RK1
September 5th, 2021, 22:22
So for awhile I've had this problem with Fantasy Grounds Unity as a DM where every 5-10 minutes or so, Fantasy Grounds Unity just stops responding. This happens while I'm just editing content by myself and while I have players in during a game. When this happens, my players don't seem to freeze up, it's just me.

While originally I thought it was my Laptop or my Internet Connection or something like that, I've basically upgraded to a point where I don't believe it can be my hardware or internet connection anymore (especially considering it happens when I'm just working by myself). My Internet is Fiber so on WiFi, I have around 250mbps Download speed and around 295mbps Upload speed. However, when I'm hosting to play with players, I used a wired connection which boosts by up to around 970mbps Download and Upload speed.

Here are my Laptop specs:
Processor Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz 2.30 GHz
Installed RAM 64.0 GB (63.9 GB usable)
Device ID 7D48AA75-851C-4F1B-8B15-E6D10CC58684
Product ID 00330-52808-15317-AAOEM
System type 64-bit operating system, x64-based processor

While running FGU, no more than 50% of my CPU or Memory is used and it only climbs that high if I'm using multiple apps.

At this point, it's really hampering gameplay and I've searched all around for solutions, but nothing really seems to pop up. I have many modules open, but this was happening even while I had basically no modules open. It happens even when I just start a new campaign with no modules or any new data in that campaign. The only other time it lags is when I am moving multiple Tokens over a larger distance on a large map, but that's just lag and it doesn't cause FGU to stop responding.

Something tells me it has to do with when FGU automatically saves every couple minutes, so I was wondering if there was some way to somehow alter this process to say... every Half Hour to an Hour and right before FGU is closed down as opposed to every 5-10 minutes? Or if there was some way to allocate more RAM to FGU if that would make it run faster?

LordEntrails
September 5th, 2021, 23:04
FGU saves every five minutes. If you have a very large campaign db file, it can take a noticeable amount of time for it to save. Check your campaign file to see how large it is. Also consider clearing out stuff you don't need (old images, stories, etc). You can export them to a module to save them for later re-use/reference.

For my campaign I've been running for several years now (started with FGC), I create all my custom content, whether it is new stuff or modifications to DLC, in various "development" campaigns, then I export those as modules and then open those in my play campaign as needed. I also regularly un-share images that are no longer needed.

For reference, my db.xml for this long running campaign is 4.6MB.

D4RK1
September 5th, 2021, 23:40
So I'm not sure why this should really affect FGU. The Campaign file I'm using to run is currently around 24 MB, but again even a new campaign which is around 1 MB has this problem.

I'm almost entirely sure it happens only when it's saving the campaign, but that's why I'm wondering if there was some way to reduce the save rate to maybe once per Hours or so considering that every 5 minutes is a terribly short time compared to most D&D sessions which run 2-6 hours (or more).

LordEntrails
September 6th, 2021, 08:52
Save time is, currently, impacted by the amount of entries you have, as well as possible extensions (depending upon if the extension does things with the database). The more entries that have to be written i.e. In your case 24mb worth, the longer it takes.

There is currently no user control over how often a save occurs. All you can do is manage your campaign as I implied before.

stephan_
September 6th, 2021, 11:24
So for awhile I've had this problem with Fantasy Grounds Unity as a DM where every 5-10 minutes or so, Fantasy Grounds Unity just stops responding. This happens while I'm just editing content by myself and while I have players in during a game. When this happens, my players don't seem to freeze up, it's just me.

Do you have lots of characters in FGU (not necessarily in the same campaign but over the entire ruleset)?

I did have similar issues when I switched over to FGU with 500+ characters for a rulesystem.

D4RK1
September 6th, 2021, 11:34
I certainly have a large number of PCs in the campaign, but not nearly as much as 500 or even 100... And again, with a new module with 0 characters, this Not Responding problem still occurs.

stephan_
September 6th, 2021, 11:39
I have had the issue (https://www.fantasygrounds.com/forums/showthread.php?69720-FG-lagging-presumably-due-to-too-many-characters-in-campaign-(500-)) also with a brand new campaign with no characters if other campaigns using the same ruleset have lots of characters - they don't have to be in the open campaign itself - it only matters whether they show up in the "import characters window".

Moon Wizard
September 6th, 2021, 20:32
What type of drive do you have the FG data directory installed on?
If the drive is an external or networked drive, then writing the files could potentially stall execution.

Regards,
JPG