You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently developing a game review system in Java where users can scroll through positions rapidly. The application runs perfectly on my Mac, utilizing the stop command to interrupt Stockfish calculations when needed. However, when running the same code on a Raspberry Pi, which is where the application will primarily be used, the system often freezes when the input is too fast.
I’m not sharing the code here as I’m mainly looking to understand the best practices or patterns typically used to develop such a system. My goal is to ensure that the application remains responsive regardless of the speed of the user's input. If someone has experience with this in another programming language, I’m also open to suggestions from those perspectives.
Thank you in advance for any advice or guidance you can provide!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everyone,
I'm currently developing a game review system in Java where users can scroll through positions rapidly. The application runs perfectly on my Mac, utilizing the stop command to interrupt Stockfish calculations when needed. However, when running the same code on a Raspberry Pi, which is where the application will primarily be used, the system often freezes when the input is too fast.
I’m not sharing the code here as I’m mainly looking to understand the best practices or patterns typically used to develop such a system. My goal is to ensure that the application remains responsive regardless of the speed of the user's input. If someone has experience with this in another programming language, I’m also open to suggestions from those perspectives.
Thank you in advance for any advice or guidance you can provide!
And if you’re feeling extra brave and curious about the code, here’s the class in my repository: https://github.com/Hardin22/JavaChessBoard/blob/master/src/main/java/org/example/javachess/Oggetti/Stockfish.java#L473-L514
Beta Was this translation helpful? Give feedback.
All reactions