Bug 168255 - Add FPS counter for LibreOffice Writer
Summary: Add FPS counter for LibreOffice Writer
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Enhancements
  Show dependency treegraph
 
Reported: 2025-09-02 17:12 UTC by Hossein
Modified: 2025-09-07 07:18 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hossein 2025-09-02 17:12:57 UTC
Description:
In computer programs with GUI display, a good measure for application performance is FPS. This is extensively used in graphics intensive programs like games, 3d rendering, etc.

It is possible to have such a measure through external applications, for example from utility applications of the GPU vendors, and also from the OS, like Microsoft Windows. As an example, see this guide:

5 Quick Ways to Show FPS Counter in Windows 11
https://www.guidingtech.com/how-to-show-fps-counter-in-games-windows-11

On the other hand, it is more useful to have such a feature in LibreOffice core itself. For LibreOffice impress, this is already available. If you run LibreOffice Impress from a debug build, it displays:

FPS: ...
Sprites: ...
Mem: ...

These are useful information generated in canvas/source/vcl/spritecanvashelper.cxx and are only displayed in a debug build. Calculating FPS is done in SpriteCanvasHelper::renderFrameCounter() by measuring the elapsed time since last update, maLastUpdate.getElapsedTime().

The task here to do the same for LibreOffice Writer.
Comment 1 Jean-Baptiste Faure 2025-09-02 20:43:53 UTC
Set as enhancement.

Please could you explain in which workflow it could be useful to have a FPS counter in Writer.

Set to needinfo.

Best regards. JBF
Comment 2 Hossein 2025-09-02 22:33:00 UTC
(In reply to Jean-Baptiste Faure from comment #1)
> Set as enhancement.
> 
> Please could you explain in which workflow it could be useful to have a FPS
> counter in Writer.
> 
> Set to needinfo.
> 
> Best regards. JBF
Sure:

This data is supposed to be used in debugging, similar to the use case of FPS/Sprites/Memory in LibreOffice Impress.

Why it is needed? Because there are many cases where Writer becomes laggy and non-responsive. FPS is among the metrics that can numerically show the issue, so that other developers can find the root cause, and possibly fix the issue. In short, it is can be helpful as a performance measurement tool for debugging LibreOffice Writer.

Please see tdf#137468 comment 10 as an example, although the user mentions that an external FPS counter is not always accurate. There are also other reports that refer to FPS as a measure of performance.

It is worth noting that I created this issue to be a difficultyInteresting EasyHack, so that new developers can work on it.
Comment 3 Jean-Baptiste Faure 2025-09-03 05:39:34 UTC
Thank you Hossein for your explanations. Set as NEW.

Best regards. JBF