Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
38 user(s) are online (23 user(s) are browsing Forums)

Members: 1
Guests: 37

cygnusEd, more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: SDL1 open issues

Subject: Re: SDL1 open issues
by kas1e on 2019/8/24 7:36:43

@Capehill
In meantime found some fork, where one man trying to replace sdl1 on sdl2 in irrlicht. There is new CIrrDeviceSDL2.cpp():
https://github.com/okuoku/irrlicht-gen ... rlicht/CIrrDeviceSDL2.cpp

So i adapt it to current source, but to find out that it's so much slower than sdl1 version, that its just unreal. I made a few tests for some example

winxp, amd 1.6ghz, sdl1 : 30fps, sdl2: 14fps
win10, icore6 2.7ghz, sdl1: 110fps, sdl2: 60fps
amigaos4, x5k, sdl1: 28fps, sdl2: 2fps (!)

So while on win32 builds everything twice slower, on amigaos4 everything just stops :)

Yeah, it mean that this sdl2 migration doing something very wrong, and strangely on amigaos4 it not just twice slower, but almost stop everything.

I think its about CIrrDeviceSDL::present() realisation and how the surface and blitting done, see there some SDL_CreateRGBSurfaceWithFormatFrom with SDL_PIXELFORMAT_ARGB8888 as default , and some strange SDL_RenderCopy().. Imho something there cause those heavy issues (And still strange, why on amigaos4 it made not just slower, but just everything about to stop, mouse jerky, whole system overloaded, etc).
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project