Register

Prime Performance

An Add-on Module for Foundry Virtual Tabletop

Author: Arne Project Source: Project URL Versions 12.324 - 12 (Verified 12.330) Last Updated 3 days, 5 hours ago

Increases your Foundry VTT Performance, essentially going from

28fps
to
120fps

In certain scenes with many tokens, status effects and ressource bars visible. Even in real world scenes, 25-75% performance increase is realistic.


Okay, but how?

This module provides a simple set of performance optmizations to the token UI layer rendering in Foundry VTT. By optimizing draw call batching, the performance impact of each additional token on the scen is dramatically decreased.

This increases the performance of foundry VTT the most where it is important: In big battles with many tokens and applied status effects on the scene and when a laggy UI would just ruin the immersion.

For more technical details, visit the linked GitHub page below.

Available Settings

Currently, three settings are provided:

Optimize Token UI Render Batching is the heart of this module and improves batching. This alone has by far the most impact, but is furthler amplified by the following two settings:
Cache token ressource bars uses bitmap texture caching of the token HP bars reduce draw calls from 1 per token to 1 for every 8-16 tokens under optimal circumstances! Has no impact if (alsmost) no hp bars are shown. This can slightly degrade the visual quality, especially on lower foundry performance settings.
Cache token effects applies the same strtegy as the ressource bar cache but to the status effects overlay. This can slightly degrade the visual quality, especially on lower foundry performance settings.

So, like, just free performance, huh?

There are almost no downsides! Care has been taken to make sure the out of order rendering still triggers all the relevant functions a system or foundry itself might use. Overlapping tokens, erasing of UIs below tokens etc. all just work!
Ressource bar and token effects caching slightly increases the memory requirements and might slightly reduce the visual fidelity of these UI elements on the highest zoom settings. 
There is one major asterix to this though: The custom out of order rendering code for the UI effects layer might get broken by certain things:
  1. Updates to Foundry VTT that changes the UI layer rendering code or other internal parts. This should only really happen with the next major version.
  2. Systems or modules that do funky stuff with the token effects or ressource bar UIs, especially if they are updated outside of the core functions that normally do the drawing.

There is nothing I can do about the first, but if the second point affects you, disabling either resource bar or effect UI caching should solve those issues.

Categories

Available Versions

  1. Version 0.5.5

    3 days, 5 hours ago
    Foundry Version 12.324 - 12 (Verified 12.330) Manifest URL Read Notes
  2. Version 0.5.4

    5 days, 7 hours ago
    Foundry Version 12.324 - 12 (Verified 12.330) Manifest URL Read Notes
  3. Version 0.5.3

    2 months ago
    Foundry Version 12.324 - 12 (Verified 12.328) Manifest URL Read Notes
  4. Version 0.5.2

    2 months, 3 weeks ago
    Foundry Version 12.324 - 12 (Verified 12.328) Manifest URL Read Notes
  5. Version 0.5.1

    2 months, 3 weeks ago
    Foundry Version 12.324 - 12 (Verified 12.328) Manifest URL Read Notes
  6. Version 0.4.0

    3 months ago
    Foundry Version 12.324 - 12 (Verified 12.328) Manifest URL Read Notes
  7. Version 0.3.7

    3 months ago
    Foundry Version 12.324 - 12 (Verified 12.328) Manifest URL Read Notes
  8. Version 0.3.6

    3 months ago
    Foundry Version 12.324 - 12 (Verified 12.328) Manifest URL Read Notes
  9. Version 0.3.5

    3 months ago
    Foundry Version 12.324 - 12 (Verified 12.328) Manifest URL Read Notes