Giter Club home page Giter Club logo

checkers's People

Contributors

longwater1234 avatar mchristos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

checkers's Issues

High memory usage on 64bit java

The game logic remains same, did not change data structures. Before match starts, constant memory is around 100MB. (Both 32 & 64bit java). As match goes on, the RAM usage spikes up! ⬆️

The RAM usage on 64 bit Java (tested on all major OS, and Java 8 latest and 17) is very high! Hovering around 260-390MB during single match. You may want to investigate this. Maybe too much copying of Heavy objects, eg BoardState

Null pointer exception when playing with AI

@Mchristos When playing against AI, after the AI did a double jump, i got NPE in the console as follows. it seems it is coming from line 192 of BoardState. I had not modified the original code.

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "org.davistiba.game.Piece.getPlayer()" because the return value of "org.davistiba.game.BoardState.getPiece(int)" is null
	at org.davistiba.game.BoardState.getSuccessors(BoardState.java:192)
	at org.davistiba.game.BoardState.getSuccessors(BoardState.java:170)
	at org.davistiba.game.Game.getValidMoves(Game.java:79)

High memory usage

The game logic remains same, did not change any data structures. Before match starts, constant memory is around 100MB. (Both 32 & 64bit java). Once start moving the pieces and match goes on, the RAM usage spikes upto 600 MB and hovers around 400~500MB throughout the match.

Tested on Windows 10, MacOS Sonoma. JDK 17.0.6 and JDK8u361

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.