Open ShpakMA opened 1 year ago
This is great. 👍
Thank you for testing this out. How do you control the game because touch inputs are working quite different than mouse? Or does Termux simulate a mouse?
How do you control the game because touch inputs are working quite different than mouse? Or does Termux simulate a mouse?
6" smartphone is too small. I use touchpad mode (mouse not absolute — swipe just move cursor in same directions). And mouse buttons are binded to volume keys…
I play few years original Settlers via DosBox Turbo in same manner…
This is not my video, but idea is same: https://youtu.be/j_4ZaIJ-r68
Only one difference — he bind virtual joystick to mouse. I bind volume keys instead…
Termux simulate a mouse
XSDL, not Termux. In NIX graphics and terminal should present on dedicated mainframe. Using videocard, keyboard and mouse on same computer is bad flavor. But PC use it. Mouse support is part of Xserver, not client. Android XSDL server is very tiny, but if we achieve stable work on it — we obtain stable work on any NIX…
https://en.wikipedia.org/wiki/X_Window_System#Software_architecture
But X Window System have no sound. This part work separately, and also may be dedicated to another server… This is good, but in results my phone work as big Zoo with heterogeneous servers instead animals…
Just look on operational flow chart here: https://en.m.wikipedia.org/wiki/PulseAudio#Software_architecture
And now we need just troubleshoot this huge Zoo…
So does fixing no sound isse #104 also fixes this issue?
So does fixing no sound isse #104 also fixes this issue?
Probably, yes. I will play today on smartphone 2 hours. The Game was stable only if sound is switched off via config file.
Ok, I was play 3 hours on android last night…
Please check render times while playing (press F3 key).
I think render is using most of the time which will lead to lags. The game currently only uses software rendering which needs a fair amount of RAM and CPU (mostly CPU I guess). I have plans to use hardware rendering but I need to do some code changes before.
After all, Serflings is just a spare time project. :)
Please check render times while playing (press F3 key).
JRE from adoptium.net ( OpenJDK17U-jre_aarch64_linux_hotspot_17.0.7_7.tar.gz ) not working on android in Termux.
Linux localhost 4.4.205-perf+ #1 SMP PREEMPT Thu Dec 3 03:44:27 CST 2020 aarch64 Android
2023-06-14T11:53:47+03:00
/data/data/com.termux/files/home/serflings/jre/bin/java -verbose -jar /data/data/com.termux/files/home/serflings//data/data/com.termux/files/home/serflings/serflings-2.0.0-SNAPSHOT-20230608.jar --validate-data
/data/data/com.termux/files/home/serflings/serflings-2.0.0-SNAPSHOT-20230608.sh: line 8: /data/data/com.termux/files/home/serflings/jre/bin/java: cannot execute: required file not found
2023-06-14T11:53:47+03:00
/data/data/com.termux/files/home/serflings/jre/bin/java -verbose -jar /data/data/com.termux/files/home/serflings//data/data/com.termux/files/home/serflings/serflings-2.0.0-SNAPSHOT-20230608.jar --system-info
/data/data/com.termux/files/home/serflings/serflings-2.0.0-SNAPSHOT-20230608.sh: line 14: /data/data/com.termux/files/home/serflings/jre/bin/java: cannot execute: required file not found
2023-06-14T11:53:47+03:00
/data/data/com.termux/files/home/serflings/jre/bin/java -verbose -jar /data/data/com.termux/files/home/serflings//data/data/com.termux/files/home/serflings/serflings-2.0.0-SNAPSHOT-20230608.jar
/data/data/com.termux/files/home/serflings/serflings-2.0.0-SNAPSHOT-20230608.sh: line 20: /data/data/com.termux/files/home/serflings/jre/bin/java: cannot execute: required file not found
2023-06-14T11:53:47+03:00
The game needs 50FPS to run smooth. This means there is only a maximum time of 20ms in total for both tick and render. Everything above reduces the FPS.
I want play Settlers while I passenger in transport. I have Android based phone (OnePlus 5T A5010).
Now sound not working in Serflings, but other sound software work good. I check by listening music via Parole Media Player from XFCE.