Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
68 user(s) are online (62 user(s) are browsing Forums)

Members: 0
Guests: 68

more...

Support us!

Headlines

 
  Register To Post  

« 1 ... 4 5 6 (7) 8 9 10 ... 74 »
Re: SDL2
Just can't stay away
Just can't stay away


See User information
Finally got joystick tested. Competition Pro seemed to work. (AmigaInput doesn't recognise my Xbox controller). Added CompPro also to game controller database. We can add new devices as soon as tester binary is released.

Go to top
Re: SDL2
Quite a regular
Quite a regular


See User information
SDL2 Net ported.

Need to do some test

Retired
Go to top
Re: SDL2
Not too shy to talk
Not too shy to talk


See User information
@AmigaBlitter

Good work.

C'amon guys.


AmigaOne X5000 OS4.1 FEU1 And Lubuntu 10.04
1200 towered with Blizzard PPC - BVision and Mediator
And a new fantastic Chameleon64
Go to top
Re: SDL2
Just can't stay away
Just can't stay away


See User information
Regarding SDL_image2 and showimage: I have just commited r80 that fixes potential issue where showimage renders with 1*1 window size.

Speaking of showimage, it had bugs after all. It doesn't destroy renderer, which means that with HW renderer, MiniGL context hangs. So add SDL_DestroyRenderer(renderer) call at the end.

Similarly, even though it does call SDL_Quit(), SDL_VideoQuit() is not done since there was no symmetrical SDL_Init(). So add SDL_VideoQuit() before SDL_Quit() as well and it should behave better, no more hanging signals.

Tested png, tiff and webp, and bmp succesfully. There was some issue with loading error with jpeg though (have to check it later).

By the way, I had to disable dependency tracking while configuring SDL_image2. Anybody else had this issue?

Go to top
Re: SDL2
Quite a regular
Quite a regular


See User information
@Capehill

"By the way, I had to disable dependency tracking while configuring SDL_image2. Anybody else had this issue?"

Well, same issue for me.
The same is for SDL2_Mixer

Retired
Go to top
Re: SDL2
Just can't stay away
Just can't stay away


See User information
@AmigaBlitter

JPEG works too, apparently the problem was that I had a soft link to an older libjpeg.so (2013ish).


Go to top
Re: SDL2
Just can't stay away
Just can't stay away


See User information
Some of the found issues are now also in the official bugtracker, for example:

https://bugzilla.libsdl.org/show_bug.cgi?id=3290
https://bugzilla.libsdl.org/show_bug.cgi?id=3291
https://bugzilla.libsdl.org/show_bug.cgi?id=3292

TODO: report SDL test suite issues.

Go to top
Re: SDL2
Quite a regular
Quite a regular


See User information
@Capehill
Well done.

Retired
Go to top
Re: SDL2
Just can't stay away
Just can't stay away


See User information
@AmigaBlitter

Today I built Starfighter project and can confirm the slowness, fullscreen issue and potentially some keyboard issue.

Game was faster in SW mode, especially with 32-bit workbench (game uses internally 32-bit surfaces). To my surprise HW mode doesn't seem to suffer from texture updating, but a whopping 250 milliseconds is spent during glBegin/glEnd. Possibly the large texture (800*600*4) is the culprit here, because when I decreased the resolution to 400*300, drawing became something like 60 ms so it looks linear. But 250 ms is really slow. I tried vertex array with glDrawElements but it wasn't faster. After all, it's only 2 triangles drawn here. Next step would be to profile MiniGL but it will take some hours. You could decrease the in-game resolution but unfortunately game uses hardcoded magic values here and there. Nasty. Still, maybe you can replace all "800" with screenWidth and "600" with screenHeight and then just use a smaller reso like 640*480.

Regarding fullscreen mode, probably desktop mode fullscreen is not sensibly implemented or something, have to do some more testing.

Regarding keyboard, either game uses really exotic controls or there is some mapping issue in SDL. I had a hard time figuring out the controls. And I couldn't bother reading the code :)

Regarding CODE, once again it:

a) doesn't destroy renderer
b) doesn't destroy texture
c) doesn't free the screen surface

So all these are leaked during the exit.

Go to top
Re: SDL2
Quite a regular
Quite a regular


See User information
@Capehill

About StarFighter, remember that in the code i sent you i removed two files related call to make the game works.

Retired
Go to top
Re: SDL2
Quite a regular
Quite a regular


See User information
@Capehill
Uploading large textures into VRAM is can kill the framerate, but with one large texture (800*600 -> 1024*1024) per frame, it shouldn't matter that much. Plus in that case most of the time would be spent in glTexSubImage2D. Using vertex arrays would only help with a large number of triangles, because inside MiniGL both are buffered.


Edited by BSzili on 2016/3/17 10:05:31
This is just like television, only you can see much further.
Go to top
Re: SDL2
Just can't stay away
Just can't stay away


See User information
@BSzili

Texture update takes 15-20 ms for the same 800*600*32 texture. These time figures are from SDL_GetTicks().

Tried to alter texture filtering and blend mode but no visible change. Unless there is something with the texture format, I don't know can anything be done on the SDL_render_gl.c side.

Go to top
Re: SDL2
Quite a regular
Quite a regular


See User information
I'm not sure if this type of rendering will give any benefit with MiniGL. Writing a H/W compositing renderer could actually speed things up.

This is just like television, only you can see much further.
Go to top
Re: SDL2
Just can't stay away
Just can't stay away


See User information
r81 tries to fix fullscreen toggling issues.

I might start compositing renderer next week as there isn't much else to do with SDL2 port...well OpenGL code needs probably some work (context attributes and bitmap depth) but it can be used.

Mouse cursors are missing too. And window backfill hooks. And those asm optimized converters are also not merged yet.

Go to top
Re: SDL2
Quite a regular
Quite a regular


See User information
@Capehill

Capehill for president!

Retired
Go to top
Re: SDL2
Home away from home
Home away from home


See User information
@Capehill
Have some general question: is it possible to compile programs done for SDL1, by SDL2 includes ? I mean did SDL2 have legacy compatability with SDL1 ?

Why i ask, because i have some projects in hands, which are just slow over current SDL1 software/hardware renderers. And, while i do not want to speed up every SDL app manually, i somehow was in hope that someone, someday, will speed up SDL by adding compositing accleration in some SDL functions. And as i see it it, you have plans to do so for SDL2. Will it possilbe to recompile old SDL1 based apps then ?


Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: SDL2
Quite a regular
Quite a regular


See User information
@kas1e
Generally no. Some parts are are backwards compatible, like the audio, but the event/video handling is completely different. I remember planned SDL1.2 backward compatibility mentioned on the official website, but it didn't happen yet.

This is just like television, only you can see much further.
Go to top
Re: SDL2
Quite a regular
Quite a regular


See User information
@kas1e

Is not possible directly. There are some changes to do, especially about the renderer part. In the SDL2 website there is a migration guide, btw.

I tried with an SDL1 source and generates errors.



Retired
Go to top
Re: SDL2
Just can't stay away
Just can't stay away


See User information
@kas1e

There are many different SDL applications so a general speedup is hard to do.

With SDL1 blitting opaque HWSURFACEs is already accelerated.

If you are looking for alpha blitting speedup, you could try my fork of SDL1. In fullscreen mode HWSURFACEs are blitted using compositing. So if you have a bunch of HWSURFACEs waiting to be blitted, this is the way to go.

But if the application plots the pixels (surface->pixels) by CPU, there is very little that can be done. It depends how fast your CPU can write RAM or VRAM.

Go to top
Re: SDL2
Quite a regular
Quite a regular


See User information
@thread


he's doing again the magic.

Capehill is implementing compositing in SDL2 too.
Tests are really promising.

Now there are two hw accelerated renderer: ogl and compositing.

Let's get the hands on W3D Nova to explore his potential.



Retired
Go to top

  Register To Post
« 1 ... 4 5 6 (7) 8 9 10 ... 74 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project