carlonicora/obsidian-rpg-manager

[Bug]: RPG Manager slows down performance of scrolling in Obsidian

treacherousfiend opened this issue · 0 comments

Check for existing bug reports before submitting.

  • I searched for existing Bug Reports and found no similar reports.

Expected Behavior

RPG Manager should either not affect or minimally affect performance of scrolling in obsidian

Current behaviour

RPG Manager causes the render (specifically recalculate style) part of scrolling to slow down by quite a bit.
In a relatively small file (278 lines), recalculate style took ~15MS average with RPG Manager enabled
image
With RPG manager disabled it takes at most ~3MS (although its usually lower)
image

In a much bigger file that uses lots of checkboxes (626 lines, nearly every single one having a checkbox), something Obsidian already struggles with, this can start to cause massive stutters, with varying degrees of time spent on recalculate style, from ~40ms all the way up to (in my worst case) over 160ms with RPG Manager enabled!
image
with RPG Manager disabled the highest it recalculate style got for me was around 60ms, with it usually being on the lower end between 20-30ms
image

Its quite possible this performance issue applies to other parts of obsidian as well, but this is where i noticed it and found a good way to reproduce it
All testing was done in edit view, not reading view

Reproduction

  1. Open test file: Demo Problem.md
  2. Scroll.

The test file is something I made in a few minutes thats 1026 lines long of checkboxes of various indents. My performance measurements above were not done with this file, but I did do performance metrics with it and the performance detriment is still noticeable in the demo file.

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version Check

1.5.8 and 1.4.16

Plugin Version

4.1.14

Confirmation

  • I have disabled all other plugins and the issue still persists.

Possible solution

No response