Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
55 user(s) are online (50 user(s) are browsing Forums)

Members: 2
Guests: 53

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

Re: SDL1 open issues

Subject: Re: SDL1 open issues
by kas1e on 2019/8/25 19:01:11

@Capehill
Quote:

Is there difference between accelerated and software renderer?


Tried to replace SDL_CreateRenderer(ScreenWindow, -1, 0); on SDL_CreateRenderer(ScreenWindow, -1, SDL_RENDERER_ACCELERATED); give no changes visually, same.

Quote:

You could try to measure:


That log i have when running:

Quote:

Update 9, Copy 0, Present 5
Update 8, Copy 0, Present 1
Update 8, Copy 0, Present 0
Update 8, Copy 0, Present 0
Update 8, Copy 0, Present 0
Update 9, Copy 0, Present 0
Update 9, Copy 0, Present 0
Update 8, Copy 0, Present 0
Update 8, Copy 0, Present 0
Update 8, Copy 0, Present 0
Update 8, Copy 0, Present 0
Update 8, Copy 0, Present 0
Update 7, Copy 0, Present 0
Update 7, Copy 0, Present 1
Update 7, Copy 0, Present 1
Update 7, Copy 0, Present 0
Update 7, Copy 0, Present 1
Update 8, Copy 0, Present 0


What i can't get currently, its why on win32 in terms of speed there is not such massive slowdown with 1:1 same code. We test pretty much of SDL2 apps already over our SDL2 , so strange..

On win32 when i put the same measure code, i have such output:

Quote:

Update 3, Copy 4, Present 7
Update 2, Copy 0, Present 1
Update 3, Copy 0, Present 1
Update 2, Copy 0, Present 1
Update 3, Copy 0, Present 0
Update 3, Copy 0, Present 1
Update 3, Copy 0, Present 2
Update 2, Copy 0, Present 1
Update 2, Copy 0, Present 1
Update 3, Copy 0, Present 0
Update 3, Copy 0, Present 0
Update 3, Copy 0, Present 0
Update 3, Copy 0, Present 1
Update 2, Copy 0, Present 2
Update 2, Copy 0, Present 1
Update 2, Copy 0, Present 1
Update 2, Copy 0, Present 1
Update 3, Copy 0, Present 0
Update 3, Copy 0, Present 0
Update 3, Copy 0, Present 0
Update 3, Copy 0, Present 0
Update 3, Copy 0, Present 1
Update 2, Copy 0, Present 1
Update 2, Copy 0, Present 1
Update 2, Copy 0, Present 1
Update 3, Copy 0, Present 0


And no slowdowns

ps. just in case i check debugbuffer : nope, there is nothing which can slow things down that much.

edit: there definately something with that sdl2 code: i find out that on win32 descructor never called !
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project