featurecat / lizzie

Lizzie - Leela Zero Interface
GNU General Public License v3.0
970 stars 228 forks source link

Slow play/undo/redo with Panel UI + ToolBar + KataGo #781

Open kaorahi opened 4 years ago

kaorahi commented 4 years ago

Undo takes about 0.5 sec if I use Panel UI + ToolBar + KataGo (OpenCl). It is smooth otherwise. Similar for play and redo. This issue occurs even if I delete most of ToolBar.java as follows.

package featurecat.lizzie.gui;

import javax.swing.JToolBar;

public class ToolBar extends JToolBar {
  public ToolBar() {}
}

Lizzie 0.7.4, KataGo 1.6.1, Debian GNU/Linux stable (buster), Intel Core i7-8550U, no GPU

NTUST-MITLAB commented 4 years ago

The interesting problem is why isn't it a problem previously with toolbar... it existed for a long time without issue. Maybe the issue has nothing to do with toolbar at all, but something in the PanelUI codes, and maybe the mouse control has some kind of loop, or invoke some functions it shouldn't have.