Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
30 user(s) are online (23 user(s) are browsing Forums)

Members: 2
Guests: 28

emeck, Templario, more...

Support us!

Headlines

 
  Register To Post  

« 1 ... 69 70 71 (72) 73 74 »
Re: SDL2
Just can't stay away
Just can't stay away


See User information
That's a headache if libSDL2_net, _ttf, _gfx etc were updated at different times with different SDL2 versions. Sure you can make softlinks of previous versions that all link to the latest SDL2 .so, but it doesn't look nice aesthetically. For most libraries, I try to use library.so.majornum for the soname, so newer versions can be just a drop in replacement. I use version_type=qnx in libtool for that. (Edit: Although this doesn't appear to have an effect anymore for SDL2 libs, see edit at the bottom of the post).

I know the solution is to update every SDL2 library all at the same time, but then there's still all the programs too, which could be ported by various different people, and might not include the .so files inside the archive.

Fortunately just about everything is linked statically and ScummVM is one of the only exceptions, and includes the required files in the archive, so it's not a huge deal.

Edit: I see that on OS4Depot my last ports of SDL2_image and SDL2_ttf use the sonames of libSDL2_image-2.0.so.600 and libSDL2_ttf-2.0.so.2000. Usually these are only dependencies of the main binary of whatever is being compiled, and not of other libraries, so it shouldn't be too much of an issue, but nevertheless it's something for me to consider. I don't think version_type=qnx stops it with the SDL2 libs.


Edited by MickJT on 2024/3/16 12:46:50
Edited by MickJT on 2024/3/16 12:51:58
Edited by MickJT on 2024/3/16 12:53:09
Edited by MickJT on 2024/3/16 12:58:08
Edited by MickJT on 2024/3/16 13:02:42
Go to top
Re: SDL2
Just can't stay away
Just can't stay away


See User information
@geennaam

I tried to workaround that 8ch issue sometime ago but failed. Please remember SDL is using the AHI device API. Can you advise how to fix the problem there?

I allocated larger buffers and played with offset but couldn't make it work.

Could you make the updated sources available? TIA.

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


See User information
@MickJT


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


See User information
@Capehill

I did that (softlink to SDL2-2.0.so) and it fixed *most* of the problems i'm getting but one...

linking in SDL2.so fails...maybe because of one of the many dependancies still trying to force-use libSDL2-2.0.so, still have to figure out which one

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


See User information
@geennaam

maybe completely, but at least slightly OT

I had to revert to the default HDAudio.audio driver from AmigaOS4 a few days ago, because your HDA.audio driver started to give static noise on nearly every occasion/program, most notably with the start sound jingle and within ScummVM, for some reason AmigaAmp was not affected.

No sound prefs changes cured it.

And the most puzzling thing was, that starting Odyssey cured the static noise, closing Odyssey and starting it again brought the noise back.

I don't think it's related to your post, just wanted to let you know

after reverting to the original driver every sound from every program is clear as glass again

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


See User information
@capehill

Presumably SDL_DisableScreenSaver() has no effect on the AmigaOS4 system/port?

Looking at the source I cannot see anything that would be what I would expect; but then again, I may be expecting the wrong thing.

For some ports I am still using "application.library" to set AllowsBlanker/NeedsGameMode to FALSE/TRUE resp.

Thanks.

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top
Re: SDL2
Just can't stay away
Just can't stay away


See User information
@rjd324

I checked and screen saver settings seems to be checked only during application startup. I need to check this API.

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


See User information

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


See User information
@Capehill

Nice, thank you

Quote:

Optimize SDL_RenderCopy(Ex) by batching


Is that an SDL internal setting and automatically used, or do users have to enable "batching" in SDLPrefs?

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


See User information
@Raziel

I think batching is enabled by default. But I must admit I didn't test this setting. I will check it later.

Anyway, this optimization does only help in scenarios where multiple similar sprites are drawn per frame, like some bullet hell game. If texture changes, then batching "breaks" and draw commands are flushed.

Currently, upto 1000 quads can be rendered via same CompositeTags() call.

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


See User information
@Capehill

so, nothing that could help with dirty rects optimization...

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


See User information
testsprite2 results. Batching helps with all tested renderers. Point of the optimization was to improve compositing results. http://capehill.kapsi.fi/sdl2/testsprite2.lha

Batch mode disabled:

compositing (100): 202
compositing 
(1000): 33

opengles2 
(100):   870
opengles2 
(1000):  128

software 
(100):    325
software 
(1000):   134


Batch mode enabled:

compositing (100):  453 2x
compositing 
(1000): 242 7x!

opengles2 (100):   1960
opengles2 
(1000):   570

software 
(100):     339
software 
(1000):    146

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


See User information
@Capehill

Kudos and thank you :bow:

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


See User information
@Capehill
Thanks so much for the library update and your work!

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


See User information
@Capehill

Quote:
Capehill wrote:testsprite2 results. Batching helps with all tested renderers. Point of the optimization was to improve compositing results. http://capehill.kapsi.fi/sdl2/testsprite2.lha

Batch mode disabled:

compositing (100): 202
compositing 
(1000): 33

opengles2 
(100):   870
opengles2 
(1000):  128

software 
(100):    325
software 
(1000):   134


Batch mode enabled:

compositing (100):  453 2x
compositing 
(1000): 242 7x!

opengles2 (100):   1960
opengles2 
(1000):   570

software 
(100):     339
software 
(1000):    146


This means that all new ports using SDL 2.30.4 can be executed a little faster? If that is indeed the case, that would be great

Thanks for the continuous development of SDL2 for AmigaOs4.1

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne A1222plus AmigaOs4.1 FE
Go to top
Re: SDL2
Quite a regular
Quite a regular


See User information
@capehill

Do you expect any changes between this latest RC and the actual 2.30.4 release?

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top
Re: SDL2
Just can't stay away
Just can't stay away


See User information
@rjd324

No, I just removed pre-release status for RC1. Meanwhile, there is already 2.30.5 version released by upstream, so if there are any issues, I will try to fix those for the next version.

I will upload 2.30.4 to OS4Depot later this week.

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


See User information
@Capehill

Is SDL2 already SPE optimized or do they only focus on the normal versions?

Steffen Häuser has started first attempts to adapt Heretic2 for the A1222, but wrote me that he cannot translate it without an SPE compatible version of SDL2 and has stopped further attempts for now.

You can read the progress here:

https://www.os4welt.de/viewtopic.php?t=2690&start=180

The last comments are also in English.


Edited by Maijestro on 2024/7/22 19:19:16
Edited by Maijestro on 2024/7/22 19:19:57
MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne A1222plus AmigaOs4.1 FE
Go to top
Re: SDL2
Just can't stay away
Just can't stay away


See User information
@Maijestro

There are no SPE builds that I know of. The fastest way to get one would be if some Tabor owner checked out the latest tag, modified makefile for SPE, perhaps ran some tests and send libSDL2.a to Steffen.

For me it would take some hours to install the needed SDK, clib4 etc. And I cannot test it.

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


See User information
@all

Batch mode optimization... is this default or must it be programmed?

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top

  Register To Post
« 1 ... 69 70 71 (72) 73 74 »

 




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




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project