Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (799)
Games in Android Showcase (237)
games submitted by our members
Games in WIP (865)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  [Libgdx] Basic code stuttering on HTC Desire 816  (Read 1425 times)
0 Members and 1 Guest are viewing this topic.
Offline trollwarrior1
« Posted 2014-11-22 12:15:20 »

I started making my little game for Android (Not so little anymore), using Libgdx. Recently I started testing it on some shit device (Sony Ericson Xperia, really old, slow device) and the game was running pretty well. Then I borrowed android device from my bro, and the game seemed to stutter like crazy.

I created an empty Libgdx project with nothing in it, and ran this basic code.
http://www.java-gaming.org/?action=pastebin&id=1135
Even when rendering this basic rotating square, the app seems to stutter. (Running on HTC Desire 816)

Any ideas? I wouldn't really want to rewrite all the code I have written so far in C++ o-o
Offline Gibbo3771

JGO Kernel


Medals: 128
Projects: 5
Exp: 1 year


Currently inactive on forums :(


« Reply #1 - Posted 2014-11-22 13:28:20 »

I have a Samsung S3 mini, S3, S4, S5, Tab3, Note3 as my testing devices. Not a single one runs slow with any of my games, and that is quite a bit of hardware fragmentation right there.

I also have a Desire HD, HTC HD2. Can't even run basic Box2D simulations (like firing a projectile at 10 stacked boxes).

All of them are running different android versions.

Safe to assume it is not your code, it's most likely the phone. Not get a lend of someone elses phone to test it?

"This code works flawlessly first time and exactly how I wanted it"
Said no programmer ever
Offline trollwarrior1
« Reply #2 - Posted 2014-11-23 12:00:58 »

Ok after 10 hours I finally managed to get a rotated square with native code. Seems that it also stutters, which means its the device's fault.
Pages: [1]
  ignore  |  Print  
 
 

 
Riven (187 views)
2019-09-04 15:33:17

hadezbladez (4874 views)
2018-11-16 13:46:03

hadezbladez (1785 views)
2018-11-16 13:41:33

hadezbladez (5147 views)
2018-11-16 13:35:35

hadezbladez (1016 views)
2018-11-16 13:32:03

EgonOlsen (4367 views)
2018-06-10 19:43:48

EgonOlsen (5216 views)
2018-06-10 19:43:44

EgonOlsen (2946 views)
2018-06-10 19:43:20

DesertCoockie (3867 views)
2018-05-13 18:23:11

nelsongames (4293 views)
2018-04-24 18:15:36
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!