Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (289)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2] 3
  ignore  |  Print  
  Slick-AE Development  (Read 14592 times)
0 Members and 1 Guest are viewing this topic.
Offline EgonOlsen
« Reply #30 - Posted 2010-11-30 09:21:20 »

Still fails with a Verify Error on 1.5...something about Image/AngelFont... IIRC.

Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #31 - Posted 2010-11-30 09:38:33 »

Updated again.

http://dl.dropbox.com/u/1668516/android/Slick-Android-Test.apk

The renderer update had a great effect. I'm using my Warpstone game as a test case - it went from 20fps to 40fps on my Desire HD. Have to try and get it up to 60ish on here. Smiley

Kev

Offline badlogicgames
« Reply #32 - Posted 2010-11-30 12:27:16 »

disable blending when possible. all devices are fillrate limited and blending kills the GPU's tiling engine.

http://www.badlogicgames.com - musings on Android and Java game development
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #33 - Posted 2010-11-30 12:31:53 »

Not sure that'll be very possible in 2D games, unless Alpha Testing is less costly?

Kev

Offline ryanm
« League of Dukes »

Senior Member


Projects: 1


Used to be bleb


« Reply #34 - Posted 2010-11-30 13:48:40 »

Have to try and get it up to 60ish on here. Smiley
I've androidised (read: no garbage produced) this profiling utility. Code over here. Dead easy to use, and less impact than TraceView.
Offline EgonOlsen
« Reply #35 - Posted 2010-11-30 18:41:56 »

Still no luck. org.lwjgl.BufferUtils/PointerBuffer is used in PNGImage...something.

Offline badlogicgames
« Reply #36 - Posted 2010-11-30 21:37:28 »

Not sure that'll be very possible in 2D games, unless Alpha Testing is less costly?

alpha testing is even worse for various reasons. Iirc it's not even supported in GLES 2.0 (might be totally wrong on this). Your dungeon slasher looks like it does not need any blending for the tile map, lighting is done on a per vertex level, right? Could give you a nice speed boost.

http://www.badlogicgames.com - musings on Android and Java game development
Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #37 - Posted 2010-11-30 23:24:26 »

The tiles have transparent areas on them.

Kev

Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #38 - Posted 2010-12-01 00:01:33 »

Updatd the APK again if anyone has the time to try again on 1.5

http://dl.dropbox.com/u/1668516/android/Slick-Android-Test.apk

Kev

Offline Nate

JGO Wizard


Medals: 81
Projects: 3


Esoteric Software


« Reply #39 - Posted 2010-12-01 09:15:09 »

The tiles have transparent areas on them.
At least the first layer of tiles should be opaque?

Games published by our own members! Check 'em out!
Try the Free Demo of Revenge of the Titans
Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #40 - Posted 2010-12-01 09:29:00 »

I'll give it a try. Were there any optimizations for moving to GL11 ?

Kev

Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #41 - Posted 2010-12-01 09:35:13 »

Unfortunately no effect on this particular case.

Kev

Offline EgonOlsen
« Reply #42 - Posted 2010-12-01 11:33:56 »

Works on the Galaxy with 1.5 now. However, it's very slow because it uses the software renderer instead of  hardware. To use hardware rendering on this particular phone, you have to make sure that you are initializing gl in a particular way. You can look at any jPCT-AE example to see how.

Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #43 - Posted 2010-12-01 11:41:09 »

Thanks Egon!

Kev

Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #44 - Posted 2010-12-01 11:46:02 »

This bit?

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
mGLView.setEGLConfigChooser(new GLSurfaceView.EGLConfigChooser() {

         public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) {

            // Ensure that we get a 16bit framebuffer. Otherwise, we'll fall

            // back to Pixelflinger on some device (read: Samsung I7500)

            int[] attributes = new int[] { EGL10.EGL_DEPTH_SIZE, 16, EGL10.EGL_NONE };

            EGLConfig[] configs = new EGLConfig[1];

            int[] result = new int[1];

            egl.eglChooseConfig(display, attributes, configs, 1, result);

            return configs[0];

         }

      });


Any chance that could be wound into libgdx NateS/badlogic ?

Kev

Offline EgonOlsen
« Reply #45 - Posted 2010-12-01 11:56:42 »

Yes, that part does the trick.

Offline badlogicgames
« Reply #46 - Posted 2010-12-01 22:48:01 »

Hm, i can add that but it will have side effects when applied to all phones. I'd rather make a special case for the Samsung I7500. Does anyone have the device string?

http://www.badlogicgames.com - musings on Android and Java game development
Offline EgonOlsen
« Reply #47 - Posted 2010-12-02 08:09:22 »

Systeminfo says the device is "GT-I7500". Does that help?

Offline badlogicgames
« Reply #48 - Posted 2010-12-02 14:17:27 »

if it's the same as the Build.MODEL string then yes Smiley http://developer.android.com/reference/android/os/Build.html#MODEL

http://www.badlogicgames.com - musings on Android and Java game development
Offline EgonOlsen
« Reply #49 - Posted 2010-12-02 16:08:05 »

MODEL is "Galaxy", DEVICE and PRODUCT are both "GT-I7500"

Offline badlogicgames
« Reply #50 - Posted 2010-12-02 16:34:41 »

f'ing samsung not setting the Model string correctly :/ i guess that will overlap with other Galaxy models, like the Galaxy S. Thanks for the other strings, that should allow us to pinpoint the crappy I7500!

http://www.badlogicgames.com - musings on Android and Java game development
Offline ryanm
« League of Dukes »

Senior Member


Projects: 1


Used to be bleb


« Reply #51 - Posted 2010-12-02 16:54:37 »

Product, Model and Device on my Galaxy S are all "GT-I9000"
Offline badlogicgames
« Reply #52 - Posted 2010-12-03 00:59:01 »

Ok, i checked the GLSurfaceView sources, especially the config choosing. EgonOlsen, are you doing all your config choosing yourself or do you use the default config choosers? In any case, i uploaded our test suite to http://www.badlogicgames.com/downloads/gdx-tests-android.apk. For those of you that have a Galaxy I7500, could you install that apk and run one of the tests? I output the EGL and OGL config to logcat, the tag is "AndroidGraphics".

On my Milestone i get this for example:
1  
2  
3  
4  
5  
6  
7  
12-03 00:49:11.975: DEBUG/AndroidGraphics(1803): OGL renderer: PowerVR SGX 530
12-03 00:49:11.975: DEBUG/AndroidGraphics(1803): OGL vendor: Imagination Technologies
12-03 00:49:11.975: DEBUG/AndroidGraphics(1803): OGL version: OpenGL ES 2.0
12-03 00:49:11.975: DEBUG/AndroidGraphics(1803): OGL extensions: GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_vertex_half_float GL_OES_texture_float GL_OES_texture_half_float GL_OES_element_index_uint GL_OES_mapbuffer GL_OES_fragment_precision_high GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image GL_OES_required_internalformat GL_OES_depth_texture GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_standard_derivatives GL_EXT_multi_draw_arrays GL_EXT_texture_format_BGRA8888 GL_EXT_discard_framebuffer GL_IMG_shader_binary GL_IMG_texture_compression_pvrtc GL_IMG_texture_stream2 GL_IMG_texture_npot GL_IMG_texture_format_BGRA8888 GL_IMG_read_format GL_IMG_program_binary GL_IMG_vertex_array_object
12-03 00:49:11.975: DEBUG/AndroidGraphics(1803): framebuffer: (5, 6, 5, 0)
12-03 00:49:11.975: DEBUG/AndroidGraphics(1803): depthbuffer: (24)
12-03 00:49:11.983: DEBUG/AndroidGraphics(1803): stencilbuffer: (8)


Note that the depth and stencil buffer config is an exception, on most phones you'd get no stencil and a 16-bit depth buffer by default. Please report what you get for your Galaxy phones. Thanks a bunch.

http://www.badlogicgames.com - musings on Android and Java game development
Offline EgonOlsen
« Reply #53 - Posted 2010-12-03 07:12:33 »

I'm doing what has been posted above. Default config choosers don't work (if we actually mean the same thing...). To be exact, nothing else works except for the code snippet above. OGL Renderer for your test case is Pixelflinger. I stopped reading from there... Wink

Offline badlogicgames
« Reply #54 - Posted 2010-12-03 15:24:36 »

Cool, thanks a bunch. I assume your fix instantiates a depth buffer as well, right? Just asking cause i have no I7500 to test so i have to make sure things won't break.

http://www.badlogicgames.com - musings on Android and Java game development
Offline EgonOlsen
« Reply #55 - Posted 2010-12-03 17:16:58 »

Yes. I'm using it in all my applications on all devices and never had a single problem with that.

Offline strategy

Junior Member


Projects: 1



« Reply #56 - Posted 2010-12-06 01:09:59 »

Updatd the APK again if anyone has the time to try again on 1.5

Tried this on a Magic with 1.5; seemed to work fine (if a little bit slow - nothing serious, though).

Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #57 - Posted 2010-12-06 11:20:50 »

Yay, 1.5 success Smiley Has Egon's workrounds found it into LibGDX?

Kev

Offline strategy

Junior Member


Projects: 1



« Reply #58 - Posted 2010-12-07 01:12:37 »

I'm getting a Fail: Unsupported glGenLists, but otherwise it seems to work well enough. I haven't really stressed this yet, though - just played for a handful of minutes.

Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #59 - Posted 2010-12-07 08:59:48 »

The Fail: messages are just reminders to me. For instance, some things in slick are optimized using display lists - which don't work on this renderer (yet?).

Kev

Pages: 1 [2] 3
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (60 views)
2013-05-17 21:29:12

alaslipknot (69 views)
2013-05-16 21:24:48

gouessej (99 views)
2013-05-16 00:53:38

gouessej (98 views)
2013-05-16 00:17:58

theagentd (107 views)
2013-05-15 15:01:13

theagentd (98 views)
2013-05-15 15:00:54

StreetDoggy (144 views)
2013-05-14 15:56:26

kutucuk (167 views)
2013-05-12 17:10:36

kutucuk (166 views)
2013-05-12 15:36:09

UnluckyDevil (175 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.219 seconds with 22 queries.