mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
Tests: fixed performance problem (x20 speed up, no need to call full garbage collector manually)
This commit is contained in:
parent
b353a25f57
commit
8e3b610a0c
3 changed files with 1 additions and 3 deletions
|
|
@ -122,7 +122,6 @@ public class CardGrid extends javax.swing.JLayeredPane implements MouseListener,
|
||||||
addCard(card, bigCard, gameId, drawImage);
|
addCard(card, bigCard, gameId, drawImage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// System.gc();
|
|
||||||
drawCards(sortSetting);
|
drawCards(sortSetting);
|
||||||
this.setVisible(true);
|
this.setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -648,7 +648,7 @@ public class DownloadPictures extends DefaultBoundedRangeModel implements Runnab
|
||||||
logger.fatal("Couldn't unmount zip files", e);
|
logger.fatal("Couldn't unmount zip files", e);
|
||||||
JOptionPane.showMessageDialog(null, "Couldn't unmount zip files", "Error", JOptionPane.ERROR_MESSAGE);
|
JOptionPane.showMessageDialog(null, "Couldn't unmount zip files", "Error", JOptionPane.ERROR_MESSAGE);
|
||||||
} finally {
|
} finally {
|
||||||
System.gc();
|
//
|
||||||
}
|
}
|
||||||
closeButton.setText("Close");
|
closeButton.setText("Close");
|
||||||
updateCardsToDownload(jComboBoxSet.getSelectedItem().toString());
|
updateCardsToDownload(jComboBoxSet.getSelectedItem().toString());
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,6 @@ public abstract class CardTestPlayerAPIImpl extends MageTestPlayerBase implement
|
||||||
if (currentGame != null) {
|
if (currentGame != null) {
|
||||||
logger.debug("Resetting previous game and creating new one!");
|
logger.debug("Resetting previous game and creating new one!");
|
||||||
currentGame = null;
|
currentGame = null;
|
||||||
System.gc();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
currentGame = createNewGameAndPlayers();
|
currentGame = createNewGameAndPlayers();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue