Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
20 user(s) are online (12 user(s) are browsing Forums)

Members: 1
Guests: 19

rwo, more...

Support us!

Headlines

 
  Register To Post  

(1) 2 »
SDL3
Just can't stay away
Just can't stay away


See User information


Edited by Capehill on 2025/1/26 13:16:07
Edited by Capehill on 2025/1/29 7:31:31
Go to top
Re: SDL3
Quite a regular
Quite a regular


See User information
@Capehill
Thank for your information and the link, it is a good news the new SDL 3.

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


See User information
@Capehill

You keep on digging into the SDL (now 3) stuff?

--

It was fun while it lasted...

game box/art scans
scummvm builds (retired)
Go to top
Re: SDL3
Home away from home
Home away from home


See User information
@Capehill
You know we are there ready for all the tests you need :)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: SDL3
Home away from home
Home away from home


See User information
@Capehill

If i understand it correctly one could use it from day 1 even if it still relies on SDL2 or SDL1.2?

SDL2-compat?
Correct?

--

It was fun while it lasted...

game box/art scans
scummvm builds (retired)
Go to top
Re: SDL3
Just can't stay away
Just can't stay away


See User information
@Raziel

Quote:
You keep on digging into the SDL (now 3) stuff?


That's the plan.

Quote:
If i understand it correctly one could use it from day 1 even if it still relies on SDL2 or SDL1.2?


I don't know. I haven't studied the compatibility topic. AFAIK SDL3 API is not stable yet, so it's not for end users. Maybe in 3.2.0?

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


See User information
Sam and Ryan gave a presentation about SDL at Game Developer Conference 2023. Video, slides and other material here: https://www.libsdl.org/gdc2023/

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


See User information
@Capehill

Thank you, can't wait fir the first release

--

It was fun while it lasted...

game box/art scans
scummvm builds (retired)
Go to top
Re: SDL3
Just popping in
Just popping in


See User information

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 550 / AmigaOS 4.1 Final Edition / MorphOS 3.17
Amiga1200 / Blizzard 1230 IV PiStorm32-lite / AmigaOS 3.9
Go to top
Re: SDL3
Just can't stay away
Just can't stay away


See User information
3.2.0 RC1 is here!

https://github.com/AmigaPorts/SDL/releases/tag/v3.2.0-rc1-amigaos4

Some information regarding AmigaOS 4 changes:
- Add localized system menus to SDL windows.
- Prefs program can be started from menu. (Settings are not real-time as they are based on environment variables.)
- Support 4th and 5th mouse buttons.
- Remove MiniGL renderer. (It might make a comeback later if FBO is not required anymore)
- Implement dialog, iostream and process APIs.


Edited by Capehill on 2025/1/26 14:14:30
Go to top
Re: SDL3
Just can't stay away
Just can't stay away


See User information
@Capehill

Thank you for your tireless development of SDL.

What would interest me personally is what advantages does SDL3 have over SDL2?

Are there any first applications for AmigaOs4.1 that use SDL3?

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: SDL3
Just can't stay away
Just can't stay away


See User information
@Maijestro

You are welcome!

As for advantages, here is a list of new features: https://wiki.libsdl.org/SDL3/NewFeatures

Of course, we don't have access to all of those. Maybe the situation will improve. SDL_gpu could be partially implemented using Warp3D Nova, for example. (no compute shaders, no indirect rendering, no fences). Or by creating "nanovulkan".

Time will show what apps will be available, but for example, Dirk Simple or ioquake3 could be ported https://www.youtube.com/@RyanGordon/videos

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


See User information
@Capehill
Cool !

Quote:

- Remove MiniGL renderer. (It might make a comeback later if FBO is not required anymore)


Are you replaced it with Gl4ES (the one which had FBO and all that) or ditch it completely in favor of direct OGLES2 usage only ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: SDL3
Just can't stay away
Just can't stay away


See User information
@kas1e

Completely, for now, but if you need it, git revert this https://github.com/AmigaPorts/SDL/comm ... 4d389c88bcae30a61ed6af143

I will follow this https://github.com/libsdl-org/SDL/issues/12087

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


See User information
@Capehill

Thanks for the information and the example video.

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: SDL3
Just popping in
Just popping in


See User information
@Capehill:

Great work! Thanks a lot for porting SDL3.

Just some nit-picking: The test programs crash when started from WB, they run fine when running from a shell. Maybe they need to open a window for log output?

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


See User information
@FlynnTheAvatar

Please send a stack trace. Test programs work for me and they open output windows successfully when started from WB.

Also please check Workbench settings that there is some sane stack value.

Go to top
Re: SDL3
Just popping in
Just popping in


See User information
@Capehill

Sure, please find the stack trace below:

Crash log for task "testver"
Generated by GrimReaper 53.19
Crash occured in module newlib
.library.kmod at address 0x01A93CC0
Type of crash
DSI (Data Storage Interruptexception
Alert number
0x80000003

Register dump
:
GPR (General Purpose Registers):
   
06FFB1340 5D6C2980 00000002 00000000 5D735010 00000000 00000011 00000000 
   8
63229E74 00000000 5D73501C 01A93CB8 000007BC 61A94CF8 00000000 00000000 
  16
00000000 00000000 00000000 19FB76AE 1AEC1F0A 7F8DDA68 02018AC8 5D6C29C8 
  24
5D6F0FAC 5D734E78 00000000 00000000 00000000 5D734E88 021FA968 5D735010 


FPR 
(Floating Point RegistersNaN Not a Number):
   
0:             -nan              616      4.14294e+25       4.751e-114 
   4
:     5.08447e-277       4.5036e+15       4.5036e+15               64 
   8
:               64                1               64               64 
  12
:              256       4.5036e+15     6.54657e-144      5.06737e+58 
  16
:     9.88992e+299     -1.00019e+44          4.42262          9.53257 
  20
:      4.41275e-06     3.13471e+167     1.73446e+131           270354 
  24
:     1.71324e-257     1.14901e-144    -3.29678e+272    -5.82453e+202 
  28
:      3.69051e+89    -7.83227e-306     1.67869e-201      2.2192e-131 

FPSCR 
(Floating Point Status and Control Register): 0x82008000


SPRs 
(Special Purpose Registers):
           
Machine State (msr) : 0x0002F030
                Condition 
(cr) : 0x5DB09DC0
      Instruction Pointer 
(ip) : 0x01A93CC0
       Xtended Exception 
(xer) : 0x018407B0
                   Count 
(ctr) : 0x00000000
                     Link 
(lr) : 0x00000000
            DSI Status 
(dsisr) : 0x01860BA0
            Data Address 
(dar) : 0x00000000



680x0 emulated registers
:
DATA00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
ADDR
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
FPU0
:                0                0                0                0 
FPU4
:                0                0                0                0 



Symbol info
:
Instruction pointer 0x01A93CC0 belongs to module "newlib.library.kmod" (HUNK/Kickstart)

Stack trace:
    
native kernel module newlib.library.kmod+0x00034ba0
    module Workbench
:SObjs/libSDL3-3.2.so at 0x7CA9212C (section 0 0x96AE0)
    
native kernel module dos.library.kmod+0x00031550
    native kernel module dos
.library.kmod+0x00031b44
    module Workbench
:SObjs/libSDL3-3.2.so at 0x7CA8D1FC (section 0 0x91BB0)
    
module Workbench:SObjs/libSDL3-3.2.so at 0x7CA8D284 (section 0 0x91C38)
    
module Workbench:SObjs/libSDL3-3.2.so at 0x7CA8DA1C (section 0 0x923D0)
    
module Workbench:SObjs/libSDL3-3.2.so at 0x7C9FE828 (section 0 0x31DC)
    
module Workbench:SObjs/libSDL3-3.2.so at 0x7C9FEEB8 (section 0 0x386C)
    
module Workbench:SObjs/libSDL3-3.2.so at 0x7C9FF390 (section 0 0x3D44)
    
module Workbench:SObjs/libSDL3-3.2.so at 0x7C9FF8C8 (section 0 0x427C)
    
module Workbench:SObjs/libSDL3-3.2.so at 0x7C9FFCB0 (section 0 0x4664)
    
module Workbench:SObjs/libSDL3-3.2.so at 0x7CA002A0 (section 0 0x4C54)
    
module Workbench:SObjs/libSDL3-3.2.so at 0x7CA0050C (section 0 0x4EC0)
    [
testver.c:28testver:main()+0x28 (section 7 0x3514)
    
native kernel module newlib.library.kmod+0x00002614
    native kernel module newlib
.library.kmod+0x000032f0
    native kernel module newlib
.library.kmod+0x00003864
    testver
:_start()+0x1e0 (section 7 0x3280)
    
native kernel module dos.library.kmod+0x0002a458
    native kernel module kernel
+0x0005c18c
    native kernel module kernel
+0x0005c204

PPC disassembly
:
 
01a93cb85467003a   rlwinm            r7,r3,0,0,29
 01a93cbc
7f833840   cmplw             cr7,r3,r7
*01a93cc081070000   lwz               r8,0(r7)
 
01a93cc4419e0024   beq-              cr7,0x1A93CE8
 01a93cc8
7c6918f8   not               r9,r3


The default stack size of WB is 65kB. I also created an icon and set the stack size to 100kB, still the same crash.

It only works for me and McFly when we run the programs from a shell.

Best regards,
Josef

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


See User information
@FlynnTheAvatar

Thanks. If I checked correctly, it's crashing when scanning env variables. It's logical, because this is different implementation from SDL2. Could add NULL pointer checks for variable name and value and see if that helps.

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


See User information
3.2.0 RC2: https://github.com/AmigaPorts/SDL/releases/tag/v3.2.0-rc2-amigaos4

- Fix a crash when scanning environment variables on some systems.

Go to top

  Register To Post
(1) 2 »

 




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




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project