Performance while running the game on Android phone

Post all other topics which do not belong to any other category.
Post Reply
PolakPL2002
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Jul 10, 2019 11:20 am
Contact:

Performance while running the game on Android phone

Post by PolakPL2002 »

First of all I'd like to clarify that I tried this only to see if I will be able to even get in-game, I wasn't expecting it to be anything near playable.

If anyone has ever wondered after reading FFF-132 whether it is possible to run latest release of Factorio (1.0.0 at the time of writing) on Android phone, then the answer is yes, BUT... It is possible to RUN the game, not to PLAY the game. The performance is really poor and it is unplayable.

It took almost 2 hours for the game to load all of its data. I include screenshot of debug info if anyone is interested in exactly how bad an idea running PC games on phones is (unless the game is recompiled of course).
Screenshot while in-game
Screenshot while in-game
Performance.png (1.3 MiB) Viewed 8284 times
Testing setup:
Xiaomi Mi 9 (Snapdragon 855)
Android 10
Termux app, then QEMU to emulate x86_64 architecture, then Debian and Factorio, and finally VNC client to access virtual display.
Virtual display resolution was 1280x720.

QEMU command line used:

Code: Select all

./qemu-system-x86_64 -boot order=c -m 2048 -hda debian.img -usb -device usb-tablet -vnc 0.0.0.0:0 -smp 4
I'd like to say again that I was not expecting the game to run smoothly or anything. Even if it did how would I be supposed to play it with touchscreen only? I can plug in mouse and keyboard, but then it's probably easier to just take a laptop in such case.

PS. The screenshot was taken on PC, I was connected using VNC to qemu running on the phone.

Jap2.0
Smart Inserter
Smart Inserter
Posts: 2339
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: Performance while running the game on Android phone

Post by Jap2.0 »

I mean, at this rate it might be almost playable emulated on ARM in a few years. Under half the startup time and 11.6 UPS higher than a Raspberry Pi 5 years ago (ref). I wonder when we'll break the 0 FPS ceiling.

I'm curious how it would perform compiled natively for ARM linux, but I doubt we'll be seeing that any time soon.
There are 10 types of people: those who get this joke and those who don't.

quinor
Filter Inserter
Filter Inserter
Posts: 404
Joined: Thu Mar 07, 2013 3:07 pm
Contact:

Re: Performance while running the game on Android phone

Post by quinor »

Well, to be honest, if a motivated enough individual with some reputation in the community would ask, they probably could get the source access (I've heard that some people did already) and try compiling it for ARM. I recall that devs spoke about some issues with the graphics pipeline (opengl?) not being fully available on ARM targets though. Anyone can find a link to that?

Jap2.0
Smart Inserter
Smart Inserter
Posts: 2339
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: Performance while running the game on Android phone

Post by Jap2.0 »

Fair point, there are a decent handful with source access. I'm not sure to what extent there are issues compiling/getting it to run, I seem to think that most of the hesitancy was desyncs/not wanting to support it, which wouldn't inhibit at least trying it. I'm not recalling anything about graphics off the top of my head - I know that for a while the Raspberry Pi had terrible graphics drivers, but I think generic ARM has decent enough OS/driver support.
There are 10 types of people: those who get this joke and those who don't.

Koub
Global Moderator
Global Moderator
Posts: 7175
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Performance while running the game on Android phone

Post by Koub »

quinor wrote:
Mon Nov 09, 2020 9:06 pm
Anyone can find a link to that?
This post would be a good start to look for that. Tip : Explore the links :)
Koub - Please consider English is not my native language.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Performance while running the game on Android phone

Post by ssilk »

If wube would like to get really rich, they would hire two to four android/iOS developers. :D 8-)
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

User avatar
MEOWMI
Filter Inserter
Filter Inserter
Posts: 307
Joined: Wed May 22, 2019 12:21 pm
Contact:

Re: Performance while running the game on Android phone

Post by MEOWMI »

Is the CPU instruction architecture literally incompatible?

Anyway, nice render performance... I wonder why that's so slow. Is it software rendering everything?

Amarula
Filter Inserter
Filter Inserter
Posts: 509
Joined: Fri Apr 27, 2018 1:29 pm
Contact:

Re: Performance while running the game on Android phone

Post by Amarula »

Definitely plan to load Factorio when I get my new Linux phone...
https://puri.sm/products/librem-5/
My own personal Factorio super-power - running out of power.

TheoMarque
Long Handed Inserter
Long Handed Inserter
Posts: 75
Joined: Tue Feb 27, 2018 6:06 pm
Contact:

Re: Performance while running the game on Android phone

Post by TheoMarque »

VNC transmission is CPU consuming, but I like your exploration.

Anyone run Factorio on alpine linux?


PunkSkeleton
Long Handed Inserter
Long Handed Inserter
Posts: 82
Joined: Sun Oct 09, 2016 2:10 pm
Contact:

Re: Performance while running the game on Android phone

Post by PunkSkeleton »

It seems to mainly be a problem with rendering, probably the emulator does not use phone GPU at all. As for UPS 11 is not that bad IMO for emulation of very complex instruction set that has been evolving for like 40 years.

User avatar
ptx0
Smart Inserter
Smart Inserter
Posts: 1507
Joined: Wed Jan 01, 2020 7:16 pm
Contact:

Re: Performance while running the game on Android phone

Post by ptx0 »

PunkSkeleton wrote:
Fri Nov 20, 2020 7:01 pm
It seems to mainly be a problem with rendering, probably the emulator does not use phone GPU at all. As for UPS 11 is not that bad IMO for emulation of very complex instruction set that has been evolving for like 40 years.
this is a really good point. @OP can you run a benchmark using ./factorio --benchmark and this will eliminate GUI and give a UPS idea? because then you can run your map in your pocket and have it produce resources on the go, then connect to server from laptop and save map. genius.

Post Reply

Return to “General discussion”