Bug 146507 - Delay/lag with context menu (right click) if "font size" present
Summary: Delay/lag with context menu (right click) if "font size" present
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.2.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf
: 146508 (view as bug list)
Depends on:
Blocks: Context-Menu
  Show dependency treegraph
 
Reported: 2022-01-01 05:33 UTC by golemus
Modified: 2023-08-19 19:20 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Video showing the delay (2.79 MB, video/mp4)
2022-11-30 12:34 UTC, jcsanz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description golemus 2022-01-01 05:33:09 UTC
Description:
When clicking an item with right mouse click the context menu should appear instantaneously (or max. 0.1s delay) for good usability.

Steps to Reproduce:
1. Open or create a complex file (docx or xlsx (tested in Win10 x64)
2. Right click on any element in document.
3.

Actual Results:
Context menu opens with a delay, which is typically about 500ms but sometimes up to 2000ms.

Expected Results:
Context menu should open instantaneously or max. 100ms delay. In MS Office it opens instantaneously.


Reproducible: Always


User Profile Reset: No



Additional Info:
Be faster.
Comment 1 Julien Nabet 2022-01-01 09:19:58 UTC
*** Bug 146508 has been marked as a duplicate of this bug. ***
Comment 2 Rainer Bielefeld Retired 2022-01-01 13:23:44 UTC
NOT reproducible REPRODUCIBLE with  Installation of Version 7.2.4.1 (x64) / LibreOffice Build  27d75539669ac387bb498e35313b970b7fe9c4f9
CPU threads: 12; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win; Locale: de-DE (de_DE); UI: de-DE; Calc: threaded;  Elementary Theme; My normal User Profile.

Tested with 137 pages Writer document with lots of frills on AMD Ryzen 5 3600 6-Core Processor 3.60 GHz 16GB RAM, SSD
Comment 3 golemus 2022-01-01 13:52:34 UTC
(In reply to Rainer Bielefeld Retired from comment #2)
> NOT reproducible REPRODUCIBLE with  Installation of Version 7.2.4.1 (x64) /
> LibreOffice Build  27d75539669ac387bb498e35313b970b7fe9c4f9
> CPU threads: 12; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL:
> win; Locale: de-DE (de_DE); UI: de-DE; Calc: threaded;  Elementary Theme; My
> normal User Profile.
> 
> Tested with 137 pages Writer document with lots of frills on AMD Ryzen 5
> 3600 6-Core Processor 3.60 GHz 16GB RAM, SSD

You have much more powerful machine than mine. Here specs are:

Lenovo Thinkpad Edge E530 (2012), i7-3632qm (4cores 8 threads), 16GB RAM, SSD1: 500GB, SSD2: 1000GB. Win10-64, version is abt. 10/2021 I think, 2 connected external displays, both in fullHD, internal display disabled. Video card: Intel HD 4000 CPU integrated (there is also NVIDIA Geforce GT635M, but it is disabled in device manager)
Comment 4 Rainer Bielefeld Retired 2022-01-01 14:37:23 UTC
(In reply to Rainer Bielefeld Retired from comment #2)
"NOT reproducible"!
Comment 5 Rainer Bielefeld Retired 2022-01-01 14:39:04 UTC
(In reply to golemus from comment #3)
So we will need more indication whether it's only something like general CPU overload or indeed something with context menus which needs improvement.
Comment 6 golemus 2022-01-01 16:12:53 UTC
(In reply to Rainer Bielefeld Retired from comment #5)
> (In reply to golemus from comment #3)
> So we will need more indication whether it's only something like general CPU
> overload or indeed something with context menus which needs improvement.

On the same machine MS Office context menus appear instantaneously.

Worth noting is that I have customized context menus in Tools -- Customize -- Context menus. I don't know if it could have an effect. I will test this with another machine as soon I find time.
Comment 7 golemus 2022-01-03 03:42:12 UTC
I think I have identified cause of this bug. I have added the item "Font Size" to context menu of Writer and Calc. It seems to cause the delay. When I remove font size from there the delay disappears.
Comment 8 golemus 2022-01-03 03:43:11 UTC
(In reply to Rainer Bielefeld Retired from comment #5)
> (In reply to golemus from comment #3)
> So we will need more indication whether it's only something like general CPU
> overload or indeed something with context menus which needs improvement.

Check out my latest update. "Font Size" in context menu (which I had added there) seems to be causing the delay/lag. I updated also title of this bug.
Comment 9 Buovjaga 2022-11-29 11:53:29 UTC
I reproduce on Windows. The delay is quite slight, so a slower machine is better for testing indeed. On Linux I don't see the delay, but it might be due to better performance. I tested with some older Windows versions, but it is difficult to say if there is a difference between the versions. The ability to customise context menus was added in version 5.2.

The context menu target should be Text. In earlier versions without the search in customise dialog, you will find Font Size under Format category.

Version: 7.5.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 5b18eebc2c95321ce7e6edf10f4df81557382a48
CPU threads: 2; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: fi-FI (fi_FI); UI: en-US
Calc: threaded Jumbo
Comment 10 jcsanz 2022-11-30 12:34:35 UTC
Created attachment 183911 [details]
Video showing the delay

I can't see any delay with the default configuration.
The delay is big when I add "Text size" to the context 
The delay is not appreciable when add other options, for instance "Bolds"

In the video the cursor shadow gets green when click with secondary mouse button (red with main) 

Tested with an Intel(R) Core(TM) i5-3317U CPU 1.70 GHz, 8.00 GB, and a Writer document of 484 pages (one of our guides)

Version: 7.4.2.3 (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL