Headlines |
-
snes9x.zip - emulation/gamesystem
Apr 29, 2024
-
hle-pokercard.lha - game/card
Apr 29, 2024
-
mce.lha - game/utility
Apr 29, 2024
-
amiarcadia.lha - emulation/gamesystem
Apr 28, 2024
-
ifarchive_dl.lha - utility/script
Apr 28, 2024
-
kt_scripts.lha - utility/script
Apr 28, 2024
-
stream.lha - utility/benchmark
Apr 27, 2024
-
thumbnailmaker.lha - video/misc
Apr 26, 2024
-
theme_list.lha - utility/misc
Apr 23, 2024
-
faac.lha - audio/convert
Apr 22, 2024
|
|
|
|
Re: Zod Engine port
|
Posted on: 2016/3/21 19:20
#1541
|
Just can't stay away
|
@Lio
Somebody should fix the network code because it ignores endianness totally. This is a boring job. Maybe sometime after SDL2? No promises though. Without fix, you would be only able to play with big-endian players.
Speed is something where SDL1 with compositing might help a bit. OpenGL renderer is problematic. It draws in immediate mode and uses non-supported texture sizes. No big gains here if I remember correctly.
So I guess this is somewhere in my todo list. But I can start a github project if somebody wants to help.
|
|
|
|
Re: SDL2
|
Posted on: 2016/3/17 18:38
#1543
|
Just can't stay away
|
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.
|
|
|
|
Re: SDL2
|
Posted on: 2016/3/17 10:00
#1544
|
Just can't stay away
|
@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.
|
|
|
|
Re: SDL2
|
Posted on: 2016/3/16 19:25
#1545
|
Just can't stay away
|
@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.
|
|
|
|
Re: SDL2
|
Posted on: 2016/3/15 19:16
#1546
|
Just can't stay away
|
|
|
|
|
Re: SDL2
|
Posted on: 2016/3/15 17:36
#1547
|
Just can't stay away
|
@AmigaBlitter
JPEG works too, apparently the problem was that I had a soft link to an older libjpeg.so (2013ish).
|
|
|
|
Re: SDL2
|
Posted on: 2016/3/14 19:29
#1548
|
Just can't stay away
|
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?
|
|
|
|
Re: Which graphics card(s) do you use with AmigaOS 4.x (in 2016)?
|
Posted on: 2016/3/10 17:40
#1549
|
Just can't stay away
|
@Hans
Radeon M9 (Sam440) Radeon 7000 (uA1), also PCI 9250 somewhere
|
|
|
|
Re: SDL2
|
Posted on: 2016/3/9 19:58
#1550
|
Just can't stay away
|
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.
|
|
|
|
Re: SDL2
|
Posted on: 2016/2/27 19:04
#1551
|
Just can't stay away
|
@TSK
I guess we are at the point where enough of functionality has been implemented and real testing can begin. So let's see how many bugs there are.
|
|
|
|
Re: SDL2
|
Posted on: 2016/2/27 13:07
#1552
|
Just can't stay away
|
@AmigaBlitter
Congratulations for porting the first (?) SDL2 game for AmigaOS. As a reward, you can now port some more :)
|
|
|
|
Re: SDL2
|
Posted on: 2016/2/26 21:00
#1553
|
Just can't stay away
|
@AmigaBlitter
Well, can't stop the progress :)
On TODO list there are still at least:
- joystick (currently untested) - shapes (if possible) - compositing renderer (some day) - mouse cursors - ...
|
|
|
|
Re: SDL2
|
Posted on: 2016/2/26 20:30
#1554
|
Just can't stay away
|
Please test r66. OpenGL accelerated renderer can be now used.
|
|
|
|
Re: SDL2
|
Posted on: 2016/2/25 18:10
#1555
|
Just can't stay away
|
@MickJT
If I had serial log, I might be able to help. At the moment I have hands full with the core lib so I'm not going to compile satellite libs this week...
Source code of showimage doesn't look buggy. It relies on implicit initialization and quitting of video system so it's a bit "lazy" though. But at least it calls SDL_Quit.
|
|
|
|
Re: SDL2
|
Posted on: 2016/2/24 19:07
#1556
|
Just can't stay away
|
@BSzili Yeah, luckily, glBlendFuncSeparate seems to be the only missing function. Here are the SDL blenders: https://wiki.libsdl.org/SDL_SetTextureBlendModeLooks like we can use just glBlendMode for "none" and "blend", while "add" and "mod" can be a little bit funky. EDIT: forgot the issue of NPOT textures. This can be a showstopper for MiniGL renderer. EDIT2: damn, it's good to be wrong. Looks like internally SDL2 uses POT textures.
Edited by Capehill on 2016/2/24 19:43:46
|
|
|
|
Re: SDL2
|
Posted on: 2016/2/24 19:03
#1557
|
Just can't stay away
|
@AmigaBlitter
Try bigger stack + serial cable :)
|
|
|
|
Re: SDL2
|
Posted on: 2016/2/24 18:01
#1558
|
Just can't stay away
|
@MickJT What was your configure line? With GCC4.something, I can't build .so without modifying the makefile. I remove -no-undefined for libtool _and_ gcc and then I get the lib. I don't know why these switches exist in buildsystem, but also SDL1 has -no-undefined switch for libtool at least: https://github.com/adtools/os4sdl/blob/master/Makefile#L51You can try that, but I'm not really familiar with this topic. There is a ticket open on SDL2 project page regarding .so.
|
|
|
|
Re: SDL2
|
Posted on: 2016/2/23 20:03
#1559
|
Just can't stay away
|
@AmigaBlitter Thanks for the support and testing. A new issue popped up when testing accelerated (OpenGL) renderer. It cannot open all necessary functions so it fails. glBlendFuncSeparate is the first failure. I am not sure at the moment what else might be missing - list is here (used functions are the ones with SDL_PROC macro): https://sourceforge.net/p/sdl2-amigaos ... nder/opengl/SDL_glfuncs.h
|
|
|
|
Re: SDL2
|
Posted on: 2016/2/22 19:18
#1560
|
Just can't stay away
|
@AmigaBlitter
What, no teaser images?
|
|
|
|