X16 emulator runs horribly in Termux

This is the starting place for reporting bugs to the team. We will pass bug reports on to the developers after validating the reports.

You can report bugs in hardware, operating system (KERNAL or BASIC ROMs), the emulator, or the Demo library. For bugs specific to downloaded programs, use the download forum.
Post Reply
Doubleshotgun
Posts: 2
Joined: Mon Aug 07, 2023 8:08 am

Hardware X16 emulator runs horribly in Termux

Post by Doubleshotgun »

(Termux is a linux terminal/environment emulator for android https://github.com/termux/termux-app)

Any program (like Xixit for an example) performs slowly, corrupted sprites and audio and a big input delay.
Screenshot_2023-08-07-17-51-03-70.jpg
Screenshot_2023-08-07-17-51-03-70.jpg (278.06 KiB) Viewed 11587 times
Linux distro is Debian Bookworm 12. All of my settings for the emulator is set to default.
TomXP411
Posts: 1785
Joined: Tue May 19, 2020 8:49 pm

Re: X16 emulator runs horribly in Termux

Post by TomXP411 »

What hardware is this running on?

At first glance, I suspect the device simply doesn't have enough power to run the Android emulation + X16 emulator at full speed. The X16 emulator requires a lot of CPU, and mobile devices simply don't have enough CPU power to run the emulator at full speed.

I definitely would not expect it to run on a smartphone or tablet at anything better than half speed, and it also isn't going to do more than about half speed on Raspberry Pi or similar devices.
Doubleshotgun
Posts: 2
Joined: Mon Aug 07, 2023 8:08 am

Re: X16 emulator runs horribly in Termux

Post by Doubleshotgun »

Specs: https://www.oppo.com/au/smartphones/series-a/ax5s/specs
But my phone isn't that slow, right?
User avatar
ahenry3068
Posts: 1147
Joined: Tue Apr 04, 2023 9:57 pm

Re: X16 emulator runs horribly in Termux

Post by ahenry3068 »

I saw this at work today. I don't log on or post from work but I peek here from time to time.

My first thought was "Emulating x86.64 on ARM, then Emulating X16 65C02 on top of that...."
Its a wonder it works at all. !!!!


I don't know if anyone has forked a Native X16 Emulator for Android but it would be a lot better
option than this....
mobluse
Posts: 175
Joined: Tue Aug 04, 2020 2:16 pm
Location: Lund, Sweden
Contact:

Re: X16 emulator runs horribly in Termux

Post by mobluse »

I believe that Termux doesn't emulate a CPU, but is native Linux on the phone CPU. I don't think it was mentioned which X16 binary release is run in Termux.
X16&C64 Quiz: Try It Now! Huge Char Demo: Try It Now! DECPS: Try It Now! Aritm: Try It Now!
User avatar
ahenry3068
Posts: 1147
Joined: Tue Apr 04, 2023 9:57 pm

Re: X16 emulator runs horribly in Termux

Post by ahenry3068 »

I wasn't aware of an Android port of the Emulator.... I assumed emulation :(
User avatar
ahenry3068
Posts: 1147
Joined: Tue Apr 04, 2023 9:57 pm

Re: X16 emulator runs horribly in Termux

Post by ahenry3068 »

the Web Emulator works OK on my Samsung Tablet. But thats running on the Server. I assume its a minor modification of either the Linux or Windows Emulator.
TomXP411
Posts: 1785
Joined: Tue May 19, 2020 8:49 pm

Re: X16 emulator runs horribly in Termux

Post by TomXP411 »

ahenry3068 wrote: Fri Aug 11, 2023 11:15 pm the Web Emulator works OK on my Samsung Tablet. But thats running on the Server. I assume its a minor modification of either the Linux or Windows Emulator.
The web emulator does not run on the server. Just like JavaScript, the WebAssembly code is retrieved from the server but runs on your device.
User avatar
ahenry3068
Posts: 1147
Joined: Tue Apr 04, 2023 9:57 pm

Re: X16 emulator runs horribly in Termux

Post by ahenry3068 »

I'm neglecting my life lessons.

I ASSumed, it was on the server.

I'm always quite open to being wrong.
Post Reply