XR3Player icon indicating copy to clipboard operation
XR3Player copied to clipboard

Visualizers Drawers make application UI Freeze

Open goxr3plus opened this issue 6 years ago • 3 comments

Due to heavy re-rendering that Visualizers of Players need ( 60FPS ) the application is freezing a lot of times making it hard or even not usable at all .

Investigation should be done on how to minimize or completely eliminate that behaviour.

@HelgeStenstrom This will be done probably completely because i don't know how much you understand the internals of JavaFX Canvas redrawing etc :) .

Holla the application is reaching 250 stars . Not bad :)

goxr3plus avatar Aug 01 '19 14:08 goxr3plus

I know very little about canvas usage. In my own little project I started to use it only recently. A few days ago I learnt how to draw lines an a canvas, so that I can display a sound spectrum while playing a song. Still learning.

HelgeStenstrom avatar Aug 02 '19 06:08 HelgeStenstrom

Some random thoughts: What is controlling the visualizer updating frequency? One or more AnimationTimers, perhaps? Is there too much work that has to be done in one update cycle (for one timer event)? Can the amount of effort be measured, like with a profiling tool? (I've never used a profiling tool for Java, and don't know what's available).

HelgeStenstrom avatar Aug 02 '19 06:08 HelgeStenstrom

@HelgeStenstrom I am not sure how it can be measured but definitely there is . Well there is JProfiler and VisualVM

goxr3plus avatar Aug 08 '19 08:08 goxr3plus