why game is running slow in libgdx?

Anything libgdx related goes here!

why game is running slow in libgdx?

Postby Chloe789 » Sat Dec 15, 2018 9:41 am

I am making racing game in Libgdx.My game apk size is 9.92 mb and I am using four texture packer of total size is 9.92 Mb. My game is running on desktop but its run on android device very slow. What is reason behind it?
Chloe789
 
Posts: 1
Joined: Sat Nov 03, 2018 7:49 am

Re: why game is running slow in libgdx?

Postby evilentity » Sat Dec 15, 2018 10:10 am

Heres one:
mobile devices are orders of magnitude slower then desktops, what can be bruteforced on desktop will be slow on mobile.
File size doesnt really matter how fast or slow something runs.
Looking for a freelancer? PM me!
Check out libgdx discord server!
evilentity
 
Posts: 4867
Joined: Wed Aug 24, 2011 11:37 am

Re: why game is running slow in libgdx?

Postby arnzzz » Fri Jan 18, 2019 12:39 pm

you should probably hunt down the parts of your code that are causing the issue and optimize as much as possible. i havent done any Profiling in a long time, but i think i used VisualVM. try it out, see if you can pin point what is slowing you down then go in and sort that code out.
arnzzz
 
Posts: 104
Joined: Tue Aug 26, 2014 11:01 am

Re: why game is running slow in libgdx?

Postby nnaass » Mon Jan 28, 2019 6:49 pm

before doing any code optimization... please comiple a singed version of your app and check the performance.

Also make sure you are off any logging.
nnaass
 
Posts: 61
Joined: Sat Jan 25, 2014 4:44 pm


Return to Libgdx

Who is online

Users browsing this forum: No registered users and 1 guest