Skip to content

v0.2.6: small per-frame savings

Choose a tag to compare

@Ghostsupthere Ghostsupthere released this 04 Nov 18:12
· 42 commits to main since this release

Performance: small per-frame savings, no change to what is drawn. At 300+ frames a second the remaining frame time is spread thinly, so these are a few percent in busy areas, not a big jump. Thanks to Babasaba, who found the first two by reading the code and sent them in.

  • The scene's model list was walked three times every frame, and each walk built a fresh hash set on the heap (thousands of allocations a frame in a crowded city). It now reuses one table per thread, with the same order and the same guards against attachment loops. (Babasaba)
  • Item physics copied and normalized every world model's file path every frame just to check whether it starts with item\. It now checks the first five characters in place and skips everything else. (Babasaba)
  • The day/night cloud texture was rebuilt and uploaded on every frame, at a rate meant for about 60 frames a second, so at 400 fps it was regenerated about six times as often as intended. It is now rebuilt at the 60 Hz pace and the clouds drift at the same speed as before. This one came from profiling, not from the report.

Also looked at, not included. Babasaba's other suggestions were checked against the source and measured: a shader-pair cache for layered WMO materials (the client's data has no such materials, so the code never runs; Logs/WmoVisuals.log showed none after 744,000 batches in Stormwind), caching the profile lookups (not a hot path), and a larger pool of animation threads (the existing helper thread saves about 0.2 ms a frame; a wider pool would save about 0.1 ms more at best, with a new risk of thread races). None of those is in this release.

Still included from v0.2.5: armor and robes no longer drawn solid green when their textures are DXT or uncompressed (credit to Babasaba for the original report), and the large frame-rate drop when a spell effect with a light is in view (for example alt bots joining the party and buffing). Along with the "partyN is not in your party" spam fix for NPCBots/alt bots, the HD dwarf male ElvUI portrait camera fix, and the Transmogrification preview camera fix.

Possible fix (from v0.2.5, still unconfirmed): crash when entering Molten Core. A model batch with an unknown specialized shader id is now drawn with the generic shader instead of crashing. This was seen once and not reproduced. WXL_NATIVE_DIAGNOSTICS=1 logs m2: unknown specialized shader 0x... using the generic one: <model>.

Known issue (not new): after killing a Molten Giant, large flat translucent panels can flicker around the area. Not caused by these changes; probably a projected ground-area spell or vent model. Under investigation.

Diagnostics (all off by default, unchanged). WXL_PROFILE_LOG=5, WXL_SAMPLE_PROFILE=500 (with tools/sample-now.sh and tools/symbolize-samples.py in the source repository), WXL_FOG_TRACE=1 or 2, WXL_NATIVE_DIAGNOSTICS=1. Failed texture conversions are listed in Logs/TextureFailures.log.

Optional: addon fixes. FTA-Addon-Fixes.tar.gz is unchanged from v0.2.5: an ElvUI chat error on achievement messages, Questie "Missing objective data" errors on exploration quests such as quest 62, a quest-start item icon in the ElvUI bags that drew as an opaque white box, and a Lua error in the ElvUI mail skin when an attachment's icon cannot be loaded. Save it (or the unpacked FTA-Addon-Fixes folder) next to FTA-Linux-Installer.run before running the installer: it finds the file, lists what it changes, asks, and keeps backups. Add --no-fixes to skip it. sha256 dd268df800eaa6f2eb83162eb82e45fa617c2f3a2714d3180e3f24c9dd4371c7.

Install / update: download FTA-Linux-Installer.run and double-click it (or run bash FTA-Linux-Installer.run); running it again updates an existing install. Close the game first. fta-linux-client.tar.gz is the same content for a manual install. Compare downloads with FTA-Linux-SHA256SUMS.txt. After installing, sha256sum Wow64 in your client folder should print 8bacb0c59875f7dbc78d915d8f8ff41b308a0929968e5a7911179a975875417c.

Links

Linux x86-64 only. Free to use and build on (GPL-3.0-or-later). No Blizzard game assets or game data are included; you need your own From The Ashes client folder.