Zandronum Chat @ irc.zandronum.com
#zandronum
Get the latest version: 3.0
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003625DoomseekerUIpublic2019-03-31 22:182019-04-14 08:07
ReporterWubTheCaptain 
Assigned ToPol M 
PrioritynormalSeveritytweakReproducibilityalways
Statusneeds testingResolutionopen 
PlatformOSOS Version
Product Version1.2 
Target VersionFixed in Version 
Summary0003625: Servers with lots of (big) WADs may take a long time to display the WADs column tooltip on server browser
DescriptionWe check the existence of WADs by filename from IWAD and PWAD paths in real-time every time we check the WADs column tooltip. I've perceived some lag and unreasonable variance in tooltip delay, depending on the size of the WAD list (or size of WAD files, unknown to OP which); large WAD lists tend to be slower than small ones by a noticeable delay.

My best guess is there's some 200–700 ms difference easily noticeable by the eye in common worst case scenarios. This is not ideal, for what's supposed to be creating a list from a fast file system access to read if a file exists.
Steps To ReproduceAttempt to find or host some server with a big WAD list like this (I had everything downloaded):

Quote from [TSPG
Painkiller: Customized Complex Clusterfuck lexicon 122 + Epic2 - 3 lives]
/usr/bin/zandronum -connect 149.56.242.162:10678 -iwad /home/wub/.local/share/games/doom/DOOM2.WAD 
-file /home/wub/.local/share/games/doom/pwad/skulltag_content-3.0-beta01.pk3 -file /home/wub/.local/share/games/doom/pwad/bulletpuff_fix.wad 
-file /home/wub/.local/share/games/doom/pwad/epic2fix.wad -file /home/wub/.local/share/games/doom/pwad/lexicon-alpha-build-122.pk3 
-file /home/wub/.local/share/games/doom/pwad/complex-doom.v26a2.pk3 -file /home/wub/.local/share/games/doom/pwad/lca-v1.5.9.6.pk3 
-file /home/wub/.local/share/games/doom/pwad/lca-ark-1.7.5.pk3 -file /home/wub/.local/share/games/doom/pwad/randommons-v1.2.4-server.only.pk3 
-file /home/wub/.local/share/games/doom/pwad/complex-dust-v1.7.pk3 -file /home/wub/.local/share/games/doom/pwad/lca-djb-v4.3.13.pk3 
-file /home/wub/.local/share/games/doom/pwad/hem-custom-cf-v3.0.pk3 -file /home/wub/.local/share/games/doom/pwad/insanelca-custom-v1.2.1.pk3 
-file /home/wub/.local/share/games/doom/pwad/complex-dust-clusterfuck-v3.0.pk3 -file /home/wub/.local/share/games/doom/pwad/complex-doom-justammo.lca-rm-hem_v1.wad 
-file /home/wub/.local/share/games/doom/pwad/hpbar-v16b.pk3 -file /home/wub/.local/share/games/doom/pwad/complex-cf-patch-v3.0.pk3 
-file /home/wub/.local/share/games/doom/pwad/chaoslite-cf-v1.1.5.pk3 -file /home/wub/.local/share/games/doom/pwad/txs-v1.0early.pk3 
-file /home/wub/.local/share/games/doom/pwad/complex-clusterweaponsv1.4.4.1.pk3 -file /home/wub/.local/share/games/doom/pwad/kazumiscomplextouhoupack-alpha-ver.0.2.pk3 
-file /home/wub/.local/share/games/doom/pwad/nemesis_hellsmith001.pk3 -file /home/wub/.local/share/games/doom/pwad/cf_txs_cw_patch1.2.2_custom_complete.pk3 
-file /home/wub/.local/share/games/doom/pwad/complexlcazan3soundpatch.wad -file /home/wub/.local/share/games/doom/pwad/ComplexBrightmaps.pk3 
-file /home/wub/.local/share/games/doom/pwad/lexicon-miscdata-alpha-build-122.pk3 -file /home/wub/.local/share/games/doom/pwad/lexicon-hubmusfix122.wad 
-file /home/wub/.local/share/games/doom/pwad/lcademoexploit-v2.pk3 -file /home/wub/.local/share/games/doom/pwad/custom-skinpack1.0.pk3 
-file /home/wub/.local/share/games/doom/pwad/NewTextColours_260.pk3 -file /home/wub/.local/share/games/doom/pwad/evecdsp-v3c.wad 
+cl_hidecountry 0


Then find or host a minimalistic server with a small WAD list (at least one PWAD), such as this one:

Quote from Polygame Brutal Final Doom: Plutonia Experiment server
/usr/bin/zandronum -connect 195.148.126.162:10266 -iwad /home/wub/.local/share/games/doom/PLUTONIA.WAD 
-file /home/wub/.local/share/games/doom/pwad/brutalv20b.pk3 -file /home/wub/.local/share/games/doom/pwad/brutal19-tormaraw.pk3 
+cl_hidecountry 0


In the server browser window, on "WADs" column use mouse hover to display the tooltip of WADs running on the server. Compare the perceived latency of both servers until the tooltip is displayed with filenames (or "MISSING").

Doomseeker was configured to check the following file paths for IWAD and PWAD files, non-recursively:

  1. /home/wub/.local/share/games/doom
  2. /usr/share/games/doom
  3. /home/wub/.local/share/games/doom/pwad


All of these are on a fast solid-state disk (SSD). Path 0000003 has 2052 files in it, totalling 46 GB of downloaded WADs. (Unsure how much exaggerated this issue could be if the files resided on a spinning hard drive.)

Lastly, I'd like to demonstrate the disk access on the file system isn't slow; any filesystem caching is statistically insignificant as a best guess:

$ time ls -1 $(cat /tmp/foo.txt)
/home/wub/.local/share/games/doom/pwad/ComplexBrightmaps.pk3
/home/wub/.local/share/games/doom/pwad/NewTextColours_260.pk3
/home/wub/.local/share/games/doom/pwad/bulletpuff_fix.wad
/home/wub/.local/share/games/doom/pwad/cf_txs_cw_patch1.2.2_custom_complete.pk3
/home/wub/.local/share/games/doom/pwad/chaoslite-cf-v1.1.5.pk3
/home/wub/.local/share/games/doom/pwad/complex-cf-patch-v3.0.pk3
/home/wub/.local/share/games/doom/pwad/complex-clusterweaponsv1.4.4.1.pk3
/home/wub/.local/share/games/doom/pwad/complex-doom-justammo.lca-rm-hem_v1.wad
/home/wub/.local/share/games/doom/pwad/complex-doom.v26a2.pk3
/home/wub/.local/share/games/doom/pwad/complex-dust-clusterfuck-v3.0.pk3
/home/wub/.local/share/games/doom/pwad/complex-dust-v1.7.pk3
/home/wub/.local/share/games/doom/pwad/complexlcazan3soundpatch.wad
/home/wub/.local/share/games/doom/pwad/custom-skinpack1.0.pk3
/home/wub/.local/share/games/doom/pwad/epic2fix.wad
/home/wub/.local/share/games/doom/pwad/evecdsp-v3c.wad
/home/wub/.local/share/games/doom/pwad/hem-custom-cf-v3.0.pk3
/home/wub/.local/share/games/doom/pwad/hpbar-v16b.pk3
/home/wub/.local/share/games/doom/pwad/insanelca-custom-v1.2.1.pk3
/home/wub/.local/share/games/doom/pwad/kazumiscomplextouhoupack-alpha-ver.0.2.pk3
/home/wub/.local/share/games/doom/pwad/lca-ark-1.7.5.pk3
/home/wub/.local/share/games/doom/pwad/lca-djb-v4.3.13.pk3
/home/wub/.local/share/games/doom/pwad/lca-v1.5.9.6.pk3
/home/wub/.local/share/games/doom/pwad/lcademoexploit-v2.pk3
/home/wub/.local/share/games/doom/pwad/lexicon-alpha-build-122.pk3
/home/wub/.local/share/games/doom/pwad/lexicon-hubmusfix122.wad
/home/wub/.local/share/games/doom/pwad/lexicon-miscdata-alpha-build-122.pk3
/home/wub/.local/share/games/doom/pwad/nemesis_hellsmith001.pk3
/home/wub/.local/share/games/doom/pwad/randommons-v1.2.4-server.only.pk3
/home/wub/.local/share/games/doom/pwad/skulltag_content-3.0-beta01.pk3
/home/wub/.local/share/games/doom/pwad/txs-v1.0early.pk3
    0m00.00s real     0m00.00s user     0m00.00s system


$ time find /home/wub/.local/share/games/doom/pwad/ -type f
# ...
    0m00.01s real     0m00.00s user     0m00.01s system


$ find /home/wub/.local/share/games/doom/pwad/ -type f | wc -l
2051


$ du -sh /home/wub/.local/share/games/doom/pwad/
46G     /home/wub/.local/share/games/doom/pwad/
Additional InformationQt 5 (5.11.3+dfsg1-1).
Attached Files

- Relationships

-  Notes
User avatar (0020481)
Pol M (developer)
2019-04-08 22:36
edited on: 2019-04-13 13:54

Today I've done quite a bit of tinkering and I've found that Server::wadPathFinder() adds the binary dir. In windows this makes sense, in linux, not at all (/usr/bin is a horrible place for wads).
Here's the difference between having said directories and not having them:
doc

pr

User avatar (0020490)
Zalewa (developer)
2019-04-14 08:07

pr merged

Issue Community Support
Only registered users can voice their support. Click here to register, or here to log in.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2019-03-31 22:18 WubTheCaptain New Issue
2019-03-31 22:33 WubTheCaptain Summary Servers with lots of (big) WADs displayed in the server browser may take a long time to display the WADs column tooltip => Servers with lots of (big) WADs may take a long time to display the WADs column tooltip in server browser
2019-03-31 22:33 WubTheCaptain Summary Servers with lots of (big) WADs may take a long time to display the WADs column tooltip in server browser => Servers with lots of (big) WADs may take a long time to display the WADs column tooltip on server browser
2019-04-01 20:37 Pol M Assigned To => Pol M
2019-04-01 20:37 Pol M Status new => assigned
2019-04-02 20:19 WubTheCaptain Priority none => normal
2019-04-08 22:36 Pol M Note Added: 0020481
2019-04-08 22:39 Pol M Note Edited: 0020481 View Revisions
2019-04-13 13:54 Pol M Note Edited: 0020481 View Revisions
2019-04-13 13:58 Pol M Status assigned => needs review
2019-04-14 08:07 Zalewa Note Added: 0020490
2019-04-14 08:07 Zalewa Status needs review => needs testing






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker