Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
131 user(s) are online (123 user(s) are browsing Forums)

Members: 0
Guests: 131

more...

Support us!

Headlines

 
  Register To Post  

« 1 2 (3) 4 »
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Home away from home
Home away from home


See User information
@Sinan
Looks like some mess happens : you have errors like SDL1 and SDL2 swapped (i.e. when you try to compile SDL2 version, it call to undefs for SDL1), and when you try to compile SDL1 version, you have undefs like you use not clib2 version, but newlib one instead.

I think that happens because you use my makefile for examples which "../../lib/AmigaOS4/libIrrlicht.a" as you can see, mean it will use one you build (which you may have wrong version there , etc). So to build it correclty, you need to run manually like this:

ppc-amigaos-g++ -I../../include -mcrt=clib2 -O3 -ffast-math main.cpp -../../bin/AmigaOS4/02.Quake3Map -athread=native -lIrrlicht_SDL2.-lSDL2_gl4es -lgl4es -lpthread


Something like this to be sure (so you should have in clib2 directory in your SDK my libIrrlicht_SDL2.a)


@Petrol
Quote:

The 02 demo runs at ~110 fps on my setup (X1000 + R9 280X).
But I still got the same slow down every 2 or 3 seconds when rendering. CPU 100%.


Both and SDL1 and SDL2 versions ? If so, then as Hans says INTERRUPT=YES should be

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Home away from home
Home away from home


See User information
@Hans

I too have interrupt set to NO (due to random freezes otherwise) and i get ~160 FPS without any slowdowns (but with CPU at 100%).

What i meant was that i could do tests and report back with logs regarding those newly uncovered issues with the RX driver...i thought maybe because of the recent X1000 hack there might not have been much (if any) betatesting going on on the X1000 platform with this driver...

@kas1e

Sorry, but my case is kind of awkward to install a gfx board (especially the big HD 7950), so to not damage the hardware i'll stick with the RX driver/card combo for now.

Go to top
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Not too shy to talk
Not too shy to talk


See User information
@kas1e

Thanks...you are right :)

Ok I can compile now

make -f Makefile.amigaos4 SDL2=1
Makefile
.amigaos4:27Building...
ppc-amigaos-g++ -I../../include -mcrt=clib2 -O3 -ffast-math main.cpp -../../bin/AmigaOS4/02.Quake3Map -athread=native -lIrrlicht_sdl2  -lSDL2_gl4es -lgl4es -lpthread

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Amigans Defender
Amigans Defender


See User information
putenv fixed in beta9 branch

i'm really tired...
Go to top
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Home away from home
Home away from home


See User information
@Petrol
Thinking more about i think you may have something running in background, which cause those pauses every few seconds.

@Raziel
Quote:

Sorry, but my case is kind of awkward to install a gfx board (especially the big HD 7950), so to not damage the hardware i'll stick with the RX driver/card combo for now.

No worry, it's indeed better to not touch amiga hardware if there no real needs.

@Andrea
Thanks!

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Just popping in
Just popping in


See User information
Tested on a Fresh OS install, no lags (need to see what is interfering on my other partition).

The results :
SDL1 : 109 FPS
SDL2 : 110 FPS


Edited by Petrol on 2022/9/9 23:14:36
Go to top
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Home away from home
Home away from home


See User information
@kas1e

Where are the SDL2 tests in Irrlicht?
I can only find the SDL 1.2.15 inisde the archive bin/amigaos4 (at least that's what the output log tells me)

Go to top
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Home away from home
Home away from home


See User information
@Raziel
Quote:

Where are the SDL2 tests in Irrlicht?


SDL1 test: https://kas1e.mikendezign.com/a/irrlicht_quaketest_sdl1.zip
SDL2 test: https://kas1e.mikendezign.com/a/irrlicht_quaketest_sdl2.zip

@Petrol
Quote:

Tested on a Fresh OS install, no lags (need to see what is interfering on my other partition).

The results :
SDL1 : 109 FPS
SDL2 : 110 FPS


So mean SDL1/SDL2 version the same by speed, and that it was indeed something in background. My bet it will be some kind of docky (try firstly to disable whole amidock and/or xdock and then step by step enable one by one).

@All

So to summorize that what we have:

Sam460 + RadeonRX : ~34 FPS

X1000 + RadeonHD : ~110 FPS
X1000 + RadeonRX : ~160 FPS

X5000 + RadeonRX : ~260 FPS


Mean that:

1). SAM460 itself and/or GART disabling make things be bad and slow.
2). X1000 even with RadeonRX still slower much than X5000 for those tests (dunno why, maybe older memory ? The CPU is just 200mhz slower, it should't be 40% slower imho?).


This particular test, is one of the tests which strangely slow in compare with the same opengl tests on other platforms (linux/win on x86). Maybe this big differenes there can point us on something as well ..


Can some of you also test on X1000 with radeonHD and radeonRX , and on sam460 with RadeonHD and RadeonRX, from this archive:

http://os4depot.net/share/development ... ary/graphics/irrlicht.lha

That test:

bin/AmigaOS4/26.OcclusionQuer

with compositing enabled, and without compositing enabled.

That test is one with simple geometry draw ones, so we can see how this one reacts, and make a consclusion if those differences we have related to many draw calls, or in the whole to any drawing operations (that may help to diagnostic some problems on which Hans may works on)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Just can't stay away
Just can't stay away


See User information
@kas1e

bin/AmigaOS4/26.OcclusionQuer on SAM460ex & RX550:

composition off: ~580fps
composition on: ~550fps

Go to top
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Home away from home
Home away from home


See User information
@Javier
Quote:

bin/AmigaOS4/26.OcclusionQuer on SAM460ex & RX550:

composition off: ~580fps
composition on: ~550fps


OMG, Sam460 is really bad for 3D currently then. On x5000 for that "26.OcclusionQuer" test i have:

compositing off: ~3450 FPS
compositing on: ~3100 FPS


Interesting if it GART issue or general SAM's perfomance ..

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Quite a regular
Quite a regular


See User information
@kas1e

The difference in performance predates the addition of GART to the drivers.

I recall seeing the difference in your Neverball ports.
Sam460ex never more than about 17 fps .

Go to top
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Home away from home
Home away from home


See User information
@kas1e

Here are updated results from X1000+RadeonRX(560) and CANDI turned off

02.Quake3Map

SDL1 - ~220 FPS (looking straight to the floor)
SDL2 - ~220 FPS (looking straight to the floor) - with slight higher top count

26.OcclusionQuer

~3000 FPS (with occluder)
~3600 FPS (w/o occluder)

Go to top
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Home away from home
Home away from home


See User information
@Spectre660

while doing those tests, does your CPU load go to 100%?
Because if so, then that will be the bottleneck

Go to top
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Home away from home
Home away from home


See User information
@Raziel
Oh, now its start to looks good and correct.

So, that mean that anyone who have CANDY on background and want proper speed of 3D , should disable it compeltely. But that kind of expected :)

All this mean X1000 with RadeonRX drivers are "ok".

Is it with interrupt=no or =yes ?

Quote:

while doing those tests, does your CPU load go to 100%?
Because if so, then that will be the bottleneck


It should be 100% , that ok. It's benchmark programm, will eat always 100% to hit maximum limits (as almost all SDL apps do). It is the same 100% on x5000 for me too when i do my tests.


@Petrol
Do you have Candy as well enabled ?

@All

Now what is interesting, is why Sam460 _THAT_ slower in compare with x1000 and x5000 ? I mean i expect it to be .. ok, on 50% slower than X1000, but not like now:

x1000 + rx = 220 FPS
x5000 + rx = 260 FPS
sam460 + rx = 34 FPS (!)

Strange!

@Spectre

Quote:

The difference in performance predates the addition of GART to the drivers.

I recall seeing the difference in your Neverball ports.
Sam460ex never more than about 17 fps .


But why it so slow ? I mean, sam460ex : 1.1GHZ + more or less normal memory speed and stuff + RadeonRX on top of it, and it slower than x1000 for about 5-8 (!) times depends on tests !

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Just popping in
Just popping in


See User information
026.OcclusionQuery

Compositing ON : 1456 FPS with occluder ON / 1790 FPS with occluder OFF
Compositing OFF : 1475 FPS with occluder ON / 1820 FPS with occluder OFF

No Candi installed on my system.

Go to top
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Home away from home
Home away from home


See User information
@Petrol
But something still wrong then on your setup. See values from Raziel mean you should have about the same if nothing bad in background running and if you have all latest drivers and libs.

EDIT: Ah, you on RadeonHD ? Not on RX ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Home away from home
Home away from home


See User information
@kas1e

INTERRUPT set to NO here...might try it with YES setting now that my system is back to being rock stable.

@Petrol said in an earlier post he's using X1000 + R9 280X, so a Radeon HD.
I know that my RX (560) absolutely stomps my HD (7950) when it comes to pure grunt, so that might already be the reason...also, i read somewhere that the R9 series of cards were close to (if not a little inferior speed-wise) to the HD range of cards...

and wrt the SAMs...if the benchmarking occupies the cpu as well, shouldn't that explain the lower outcome already, even if the margin i *that* high?
I don't really know, but isn't the SAMs cpu inferior to the X1000/X5000 (by far?) and thus wouldn't gain as much speed from the benchmarks?

But maybe i'm misreading something?

Go to top
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Home away from home
Home away from home


See User information
@Raziel
Quote:

INTERRUPT set to NO here...might try it with YES setting now that my system is back to being rock stable.


Yeah will be interesting to see if there will be difference.

Quote:

and wrt the SAMs...if the benchmarking occupies the cpu as well, shouldn't that explain the lower outcome already, even if the margin i *that* high?
I don't really know, but isn't the SAMs cpu inferior to the X1000/X5000 (by far?) and thus wouldn't gain as much speed from the benchmarks?

But maybe i'm misreading something?


Of course CPU involved, sure. But _that_ low speed ? I mean, x1000 - 1.8ghz , x5000 - 2ghz, sam - 1.1ghz. Yes, we can say that sam have custom soc, yes memory slower, but _that_ much ? in 10 times ?:)

I expected it to be like this with radeonrx: x5000: 260 fps, x1000 : 220 fps, sam460: 100-120 fps. Like that to have "sane" difference. Not 34 fps :)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Home away from home
Home away from home


See User information
@kas1e

Another updated results from X1000
- RadeonRX(560)
- CANDI turned off
- INTERRUPT=Yes

02.Quake3Map

SDL1 - ~225 FPS (looking straight to the floor)
SDL2 - ~225 FPS (looking straight to the floor) - with slight higher top count

26.OcclusionQuer

~3000 FPS (with occluder)
~3600 FPS (w/o occluder)

Go to top
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
Quite a regular
Quite a regular


See User information
@kas1e

At the moment the way to build the SDL2+GL4ES library is to pull down SDL2 and then apply the changes to that and then build. This is all described above.

What I wanted clarity on is on:
https://github.com/kas1e/SDL2_GL4ES


git log
commit 4d504983f3876bdf714af20a8bdfed757831b1d5 
(HEAD -> mainorigin/mainorigin/HEAD)
Authorkas1e <kas1e@yandex.ru>
Date:   Sat Apr 17 22:38:49 2021 +0300

    gl4es changes


You authored those changes. Did you do these changes or someone else?

As well, we know that modifications need to be made after these changes applied to the base SDL2 library, e.g. the active window function because they are a little out of date.

My question is: is there a better method than making a diff file of 4d504983f3876bdf714af20a8bdfed757831b1d5, applying it to the very latest SDL2 branch (currently version 2.24) and then fixing up some of the differences.


Edited by rjd324 on 2022/12/14 22:45:32
Edited by rjd324 on 2022/12/14 23:07:41
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 2 (3) 4 »

 




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




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project