-
May 23rd, 2024, 22:11 #31
This has more to do with the engine, Unity does not natively support multi-threading. This does not mean that the core of Unity is not multi-threaded, but projects built on the Unity platform are not necessarily able to be multi-threaded.
Source: https://www.fantasygrounds.com/forum...l=1#post339564
Occasionally, a large campaign may require some general house keeping and optimization on the part of the GM.
1.) Clean up campaign folders if possible. (Several images and huge maps and hundreds of tokens unneeded tend to stack up and take a toll after awhile, I learned this the hard way...)
2.) Unload any unnecessary books and assets like maps, or un-share unneeded images. (Most games only need a couple core rules and perhaps a module or two, character creation is one of the few exceptions to the general best practices, and can be unloaded after building PCS or leveling up.)
3.) Image sizes, format, and use case suggestions are available here. https://fantasygroundsunity.atlassia...uct+Guidelines
4.) Extensions can kill performance, depending on what they do.
A blog article regarding maps, etc. https://www.fantasygroundsacademy.co...s-optimizationLast edited by Laerun; May 23rd, 2024 at 22:16.
FGA Founder
FGU teacher and student!
Ultimate License Holder
Discord Alias: Laerun#6969
http://www.fantasygroundsacademy.com
-
May 23rd, 2024, 22:41 #32
- Join Date
- Nov 2018
- Posts
- 37
Is there a way to easily find all shared images?
-
May 23rd, 2024, 23:30 #33
Problems? See; How to Report Issues, Bugs & Problems
On Licensing & Distributing Community Content
Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
Note, I am not a SmiteWorks employee or representative, I'm just a user like you.
-
May 24th, 2024, 00:48 #34
The campaign db is loaded into memory and periodically (every 5 minutes plus you can also manually initiate it) written to disk. It takes 5x longer to write a 15MB file than it does a 3mb file. That is going to have an impact every 5mins. Faster drives will also reduce that impact.
-
May 24th, 2024, 06:07 #35
- Join Date
- Jan 2023
- Posts
- 87
Well, I don't know much about the inner workings of FGU or the Unity engine, but when the db writes to disk is that just GM side, or is it for all clients? I can see how it might affect performance. Is there any way to set it up to only write the data that changed in the last 5 minutes instead of overwriting the entire campaign directory?
Disk writing shouldn't be an issue for me because my FGU data folder is on 3 fast SSDs linked in a RAID 0 configuration. But it's probably one of those cases where the slowest PC affects everybody and some players are actually playing on low-powered laptops.Last edited by SylvanSnake; May 24th, 2024 at 06:12.
-
May 24th, 2024, 06:22 #36
The db.xml exists only on the GM computer but the 15mb file will still take 5x longer than a 3mb file which is the next largest size reported in this thread. If it causes a 2sec delay at 3MB it will be a 10sec delay at 15MB.
The db.xml is a single flat file vs a database that has keys and values that are each written to separately so the answer is no it cannot write only the changes when it writes to disk - in memory it writes only changes. Adding an actual db engine will increase the complexity and the resource requirements - I am not saying it couldnt/shouldnt be done but it does add other factors to consider.
As for your local disk setup - I hope you have regular backups. RAID0 means a failure on any drive will result in loss of data on all three drives.
-
May 24th, 2024, 14:16 #37
You can check how long the auto save takes. Look in the FG console (type /console in chat) and you'll see something like [5/24/2024 7:14:39 AM] Campaign saved. (0s) In this example, with a very small test campaign, the save took 0 seconds.
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
May 24th, 2024, 14:17 #38
@Gilafron - what ruleset are you using (sorry if you've already mentioned that, but I didn't see it mentioned) and, as suggested previously, how many PCs are there setup in the campaign - go to the Characters screen to see all of the campaign PCs.
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
May 24th, 2024, 15:55 #39
So it might not be the saving then
I just created a 15M db.xml and it still saved in 0.6s on my average computer (with fast disk).
-
May 24th, 2024, 15:59 #40Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks