Comments (7)
Update - if I image with Buster (Legacy) then the above problems do not occur. Seems to be an issue with either 64-bit or with Bullseye. Will test more.
from joustmania.
Hi @ekobres I just updated the kill_processes.sh script that may be working now, I've also found that reset_bluetooth_connections.sh does work, but it may take a couple of times running (and rebooting) before the connections are reset, please let us know if it's working for you
also you can test if the reset_bluetooth_connections.sh worked if the folder /var/lib/bluetooth/ is empty.
from joustmania.
Thanks for the tip on /val/lib/bluetooth.
I may try Bullseye again if you think it will work.
Question on the CPU load: Is this high CPU utilization indicating a problem somewhere? My load averages are 4.57 470 4.37 - basically system 100% CPU and all processors with stuff in the queue.
Normally unblocked polling or whatever is happening to use so much compute is not an optimum situation. Is there maybe somewhere in the main loop of the game where a wait interval or callback would be able to be used instead? It could help everything run better if all the cores weren't 100% soaked.
Even input processing of time-sensitive accelerometer data could benefit from a smoother sample of interval polling rather than all-out polling.
from joustmania.
Yeah this is definitely something that would help, right now each of the controllers has it's own while loop that looks for new data, the sound processing also eats up a bunch of compute
from joustmania.
Looking at the psmove project it seems a relatively easy measure would be to sleep about 6ms on the else
of every if(move.poll())
Letting poll()
run unblocked to consume the buffer until it returns false
means it should be at least 6.66 ms before another event happens.
Disclaimer I know bupkis about Python - but I’ve done a lot of C++ embedded multithreaded stuff with hardware devices - so I understand the hardware and OS part way better than I understand what’s possible in Python.
from joustmania.
Can confirm, kill_processes fix works well.
from joustmania.
Closing, the kill_processes.sh issue should now be fixed, the higher CPU rate we can try to tackle in a separate issue
from joustmania.
Related Issues (20)
- use python3
- Missing dependencies:
- Error on pygame.mixer.init HOT 10
- Audio Documentation HOT 2
- Bluetooth failing to start on debian due to SAP (sap-server: Operation not permitted) HOT 1
- pygame.error: mixer not initialized HOT 2
- PS4 Move controller not fully pairing. HOT 2
- CPU at 100% during game
- Auto - exclude charging controllers HOT 2
- try upgrading to python 3.12
- Joust Mania python install error HOT 3
- Trying to start a game with controller charging throws error HOT 9
- Update to raspberry pi 5 HOT 1
- PS3 Controller pairing not working correctly HOT 4
- set asound.conf to the headphones on joustmania startup HOT 1
- update location of disabling internal bluetooth for bookworm HOT 1
- kill game on webui is broken
- Update joustmania to switch bonded config to false HOT 1
- Music stopped changing speeds HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from joustmania.