terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Optimize processor consumption

Open baxiry opened this issue 3 years ago • 11 comments

fyneterm consumes a lot of processor , and does not work smoothly on MacOS M1 fyneter-consume

Thanks

baxiry avatar Jan 29 '22 07:01 baxiry

Can you confirm what commands were running in the terminals? Background CPU usage should be negligible.

Though it could be a duplicate of fyne-io/fyne#2506

andydotxyz avatar Jan 31 '22 17:01 andydotxyz

running in the terminals?

I was meaning what is happening inside the terminals? Or are they all idle?

andydotxyz avatar Feb 02 '22 22:02 andydotxyz

@andydotxyz oh sorry, all in all idle

baxiry avatar Feb 02 '22 22:02 baxiry

With the latest version this may be resolved - are you still having trouble @bashery ?

andydotxyz avatar Aug 28 '23 20:08 andydotxyz

There is a small improvement. I built it with Go 1.20

baxiry avatar Aug 30 '23 20:08 baxiry

You would still categorise the app as not working smoothly?

andydotxyz avatar Aug 30 '23 20:08 andydotxyz

Processes inside the shell run smoothly. Operations on window are still bad. Zoom in .. Zoom out Move the window ..

baxiry avatar Aug 31 '23 09:08 baxiry

Move the window ..

??? This should literally be a no-op!

Operations on window are still bad. Zoom in .. Zoom out

OK - this could be slow due to complete cache invalidation. Should we focus the bug report on just that or are other operations still too slow?

andydotxyz avatar Sep 03 '23 21:09 andydotxyz

Everything is good. Only the processor consumes a lot. For example, normal fyne applications consume 0.1 - 1% of the cpu when idle. But fyne-terminal consumes 15% of the cpu when idle.

baxiry avatar Sep 06 '23 21:09 baxiry

Are you sure you are on latest version? I see idle around 3-4%. Not ideal but certainly not as bad as you report.

andydotxyz avatar Sep 11 '23 11:09 andydotxyz

I built it from source with go1.21.0 The problem still exists.

baxiry avatar Sep 14 '23 21:09 baxiry