Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
16 crawler(s) on-line.
 83 guest(s) on-line.
 1 member(s) on-line.


 pixie

You are an anonymous user.
Register Now!
 pixie:  4 mins ago
 MEGA_RJ_MICAL:  5 mins ago
 cdimauro:  5 mins ago
 hardwaretech:  1 hr 16 mins ago
 Trixie:  1 hr 18 mins ago
 amigang:  1 hr 42 mins ago
 Cammy:  2 hrs 36 mins ago
 matthey:  3 hrs 5 mins ago
 dframeli:  4 hrs 30 mins ago
 Seiya:  4 hrs 48 mins ago

software OS4   software OS4 : GL4ES: Round 2
   posted by kas1e on 3-Jul-2019 17:48:16 (8367 reads)
Today there is few more releases which builded with usage of GL4ES wrapper which mean to give us OpenGL1.x , 2.x and some of 3.x over ogles2.library and warp3dnova.

Introduction...:

For make those games works you need as necessary minimum ogles2.library v2.8 , and warp3dnova.library v1.65. Those requirements are 100% necessary.
You can get them from latest Enhancer Software update v1.5, or via from Updater. If you will have anything lower than requested, you will have bugs, crushes and errors.
So before making any bugreport later, be sure that you have those versions at minimum. And if you sure, then anyway recheck again that you have it installed :)

Of course it is understandable that you also should have modern gfx card, with latest radeonHD drivers.

Everything is compiled via gcc 8.2.0, latest SDL2 with necessary fixes to make it rendered through ogles2.library and GL4ES.

At this time there is 2 new titles and one update, all of them can be downloaded from os4depot. At moment they all in upload query. All the videos and screenshots below taken from my x5k/aos4fe.


Foobillard++...:



That one are complex OpenGL game that uses cascaded display list, line stipple, TexGen and co. Previously we have some old MiniGL port of pure Foobillard (not ++), which is slow and buggy.
New ++ version also can be build over MiniGL with some small changes, but its so slow even on x5k that it not worth of try. See the FPS numbers in 1024x768 on my x5k.

minigl 2.21: ~10fps
ogles2 2.8: ~60fps

Port based on the latest, v3.42beta, stable source release and original code of the game was quite buggy, so it take some time to fix those bugs (thanks to Georg & Daniel).
I also had to rewrite SDL1 to SDL2 and fix some endian issues. There is full list of changes of v1 release:

-- added SDL2 support via --enable-sdl2. This port builds over SDL2.
-- gl4es is used for OpenGL (so ogles2/warp3dnova)
-- amigaos4 pathes, stack cookie
-- builded with gcc 8.2.0 and enabled LTO.
-- added big-endian changes in place where loading of ball_ball.raw happens and it expected to be in LE format
-- when you choice in menu "manual", "game_history" or "touranment_history" Odyssey is used, but you can change it to any browser you need (or by changing config file, or by changing ViewOptions/Browser in menu).
-- running of external commands (such as browser) done via aos4's IDOS->SystemTags() in Async mode (thanks to Salas00 for code which works when run game and from shell and from wb icon)
-- original game's code bug: in billard3d.c/load_config() forgotten fclose(), because of which save_config() on exit didn't works
-- original game's code bug: in sound_stuff.c/strsound() there was some typo from author strcpy(s,&s[strlen(s)-4]) , while should be strcpy(s,&s1[strlen(s1)-4]), which cause heavy memory issues in end (c) Daytona
-- original game's code bug: parent_entry in the menu_new() wasn't initialized, which cause crashes later in some situation in the menu_choose(); visually it just crashes when you choice some of menus (c) Georg
-- original game's code bug: when blitting menu entries, sometime blitting happens outside of left bounds and thus trashing memory and cause heap corruption, which in end lead to crash on free(textdata) later (c) Georg
-- original game's code bug: initially checking on minimum screenmode was wrong and thus skip some modes which can fits.



Youtube video, full HD 1920x1080: https://youtu.be/hQVabA_ReoQ

Actual code with all the AmigaOS4 and other changes listed below can be found at https://github.com/kas1e/FoobillardPlusPlus

If you find any bug , plz report it on the same page there: https://github.com/kas1e/FoobillardPlusPlus/issues/new


Neverball/Neverputt 1.6.0...:




Previously we have some older 1.5.4 version of neverball games compiled over minigl, but it's quite dated and as usuall for minigl : slow. The new version use SDL2, latest PhysFS, and
compiled over gl4es (so ogles2/warp3dnova) , which give us quite boost in the speed in compare with 1.5.4 version. Have a look at those FPS numbers (be sure you have ogles2 2.8 and w3dnova 1.65):


minigl neverball 1.5.4 level1 1024x768: 27 FPS
gl4es neverball 1.6.0 level1 1024x768: 75 FPS

minigl neverputt 1.5.4 level1 1024x768: 60 FPS
gl4es neverputt 1.6.0 level1 1024x768: 285 FPS

The minigl version of 1.6.0 probabaly possible only after some code changes (and maybe in MiniGL itself as well): at least from brief tests when i tried to compile 1.6.0 version for minigl,
it just crashed in some minigl functions, so it can be that minigl no more fits in.




Youtube, full HD 1920x1080: https://youtu.be/TSug2SePrSs


Friking shark update...:





Friking shark was released before, but some bugs since then was fixed as well as some new functionality added:

-- fixed iconification support
-- enabled FPS counter code (press "f4" in game), ogles2.library 2.8 minimum or you will have crashes.
-- rebuilt with enabled LTO
-- by default start in window mode (to swith back to fullscreen change in Resources/Scripts/GameGUI.cfg , fullscreen=0 to fullscreen=1)


Youtube, full HD 1920x1080: https://youtu.be/eA9txj_P38I

Final notes

Thanks to Daniel for OpenGL ES2 and all his help with everything : http://www.goldencode.de/
Thanks to Hans for Warp3DNova and all his help with everything : https://keasigmadelta.com/
Thanks to AEON who actually pay developers (yes, unusual in amiga world) , so we have OpenGL ES2 and Warp3DNova.
Thanks to ptitSeb for GL4ES and all his help with everything : https://github.com/ptitSeb/gl4es/
Thanks to Capehill (and others) for actual SDL2 port and all his help with everything : https://github.com/AmigaPorts/SDL
    

STORYID: 8394
Related Links
· More about software OS4
· News by kas1e


Most read story about software OS4
Homebank 4.4 for AmiCygnix released

Last news about software OS4
Get 20-40% Off ZitaFTP Server (Limited Time Offer)
Printer Friendly Page  Send this Story to a Friend

Goto page ( 1 | 2 )

PosterThread
kas1e 
Re: GL4ES: Round 2
Posted on 7-Jul-2019 8:27:25
#21 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3551
From: Russia

@Petrol
And what FS you use as well from which you run game ? Ffs, sfs or sfs2 ?


_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
petrol 
Re: GL4ES: Round 2
Posted on 7-Jul-2019 9:26:19
#22 ]
Regular Member
Joined: 25-Jun-2004
Posts: 411
From: France

I've tried from diferent FS (SFS2 / NGFS / JXFS), and I got the same results.
I've put the game on a usb stick to see led activity, and the leds constantly blinked as if it was something that been read or writen constantly. In pause mode, no disk activity.

Here the video from ram:
https://www.youtube.com/watch?v=a7aG4L89ogo

Regards,

 Status: Offline
Profile     Report this post  
kas1e 
Re: GL4ES: Round 2
Posted on 7-Jul-2019 9:52:53
#23 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3551
From: Russia

@petrol
From RAM: much better, no pauses. Through for me on the same place it give 80fps, not 60 as on your, but that maybe differeces between gfx-cards / hardware / etc. What is interesting, is why you have issues from HDD. Pretty strange..

Maybe hdd setuped with some small transfers (or big ones ?) , or connected via some sata card, and not directly to board, or , maybe some debug version of sata driver ? Cleary something wrong when it runs from HDD, so kind of looks like something broke it.. At least if it was fault of libraries (let's say if we imagine ogles2 or w3d be fault), then it should be the same jerky from RAM: too, not just from HDD..


_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
klx300r 
Re: GL4ES: Round 2
Posted on 7-Jul-2019 22:41:43
#24 ]
Elite Member
Joined: 4-Mar-2008
Posts: 3846
From: Toronto, Canada

any chance our SuperTuxKart on OS4depot could be updated with Warp3dNova ?


_________________
____________________________
c64-2sids, A1000, A1200T-060@50(finally working!),A4000-CSMKIII
! My Master Miggies- Amiga 1000 & AmigaOne X1000 !
mancave-ramblings
X1000 I BELIEVE

 Status: Offline
Profile     Report this post  
petrol 
Re: GL4ES: Round 2
Posted on 8-Jul-2019 9:28:49
#25 ]
Regular Member
Joined: 25-Jun-2004
Posts: 411
From: France

Hi,

Ok maybe!

In the meanwhile, I looked at to the net to see if other platforms could suffer about this constant I/O access during the game. it seems that the PSP suffers from the same behaviour (fe: here) :(

Regards,

 Status: Offline
Profile     Report this post  
kas1e 
Re: GL4ES: Round 2
Posted on 8-Jul-2019 9:47:54
#26 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3551
From: Russia

@Petrol
That interesting yes, but then all of us should have same issues. I mean, another users with x1000 didn't report such problems.. For example Mufa on amigaone.pl didn't have those issues as far as i can see on his x1000.

Can it be that your hdd lack DMA support by any reassons ? That can explain why from RAM is more or less fine, but not from HDD.

@K-L
Do you have the same issues as Petrol have , i.e.the same pauses all the time in neverball ?


_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
kas1e 
Re: GL4ES: Round 2
Posted on 8-Jul-2019 9:50:47
#27 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3551
From: Russia

@Petrol
Btw, is MENU fine and fast ,and its happens in game only ?


_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
petrol 
Re: GL4ES: Round 2
Posted on 8-Jul-2019 10:40:05
#28 ]
Regular Member
Joined: 25-Jun-2004
Posts: 411
From: France

Yes, the problem starts when game starts, at the count down.

Regards,

 Status: Offline
Profile     Report this post  
klx300r 
Re: GL4ES: Round 2
Posted on 8-Jul-2019 20:54:11
#29 ]
Elite Member
Joined: 4-Mar-2008
Posts: 3846
From: Toronto, Canada

@ kas1e

any chance our SuperTuxKart on OS4depot could be updated with Warp3dNova ?


_________________
____________________________
c64-2sids, A1000, A1200T-060@50(finally working!),A4000-CSMKIII
! My Master Miggies- Amiga 1000 & AmigaOne X1000 !
mancave-ramblings
X1000 I BELIEVE

 Status: Offline
Profile     Report this post  
Skateman 
Re: GL4ES: Round 2
Posted on 9-Jul-2019 13:41:27
#30 ]
Regular Member
Joined: 2-Nov-2017
Posts: 160
From: Netherlands

Thanks so much, wonderfull!!

I have created a small video of my AmigaOne X5000 running Foobillard++

Keep up the good work.

https://youtu.be/Ae5Y1cJ7imE

And a small video running NeverBall

https://www.youtube.com/watch?v=v_ynDyADU1U


_________________
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon R7 250 / M-Audio 5.1 -> AmigaOS 4.1 FE / Ubuntu Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world

 Status: Offline
Profile     Report this post  
kas1e 
Re: GL4ES: Round 2
Posted on 10-Jul-2019 20:03:25
#31 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3551
From: Russia

@Skateman
Yeah, speed is good on videos

@Petrol
Didn't find why neverball lags on your hdd ? Can you see if your hdd working with enabled or disabled dma ? (that can explain those strange pauses). Or maybe you have some small buffers sizes (or some strange ones) when partitioning hdd ?


_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
petrol 
Re: GL4ES: Round 2
Posted on 11-Jul-2019 11:33:41
#32 ]
Regular Member
Joined: 25-Jun-2004
Posts: 411
From: France

Hi,

Ok, I'll have a look this WE.

Regards,

 Status: Offline
Profile     Report this post  
petrol 
Re: GL4ES: Round 2
Posted on 12-Jul-2019 15:26:37
#33 ]
Regular Member
Joined: 25-Jun-2004
Posts: 411
From: France

@kas1e

Quote:
7.AmigaOS:> idetool -l sb600sata.device
-------------------Unit 0 information------------------------
Flags : $0000011D - present, supports DMA, removable media, ATAPI, interrupts used,
Xfer mode : best pio 12 (PIO 4, 16 MB/s) / best dma 69 (UDMA 5, 100 MB/s) / current 69 (UDMA 5, 100 MB/s)
Total blocks : 0
Blocksize : 0
SCSI devtyp : 5
Packet size : 12
Current medium read speed : x 65535 ('65535' stands for max.)
Current medium write speed : x 65535 (idem)
Power mode : 2 / idle (ready for operation)
IO1 / IO2 / BMCR @ : $1040 / $105E / $1010
spurious interrupts: 0
bounced misaligned cache line start DMA requests: 812
bounced misaligned cache line end DMA requests: 0
bounced non-contiguous buffer DMA requests: 5
-------------------Unit 1 information------------------------
Flags : $00000187 - present, LBA48 used, supports DMA, ATA, supports cache flush, interrupts used,
Xfer mode : best pio 12 (PIO 4, 16 MB/s) / best dma 70 (UDMA 6, 133 MB/s) / current 70 (UDMA 6, 133 MB/s)
Total blocks : 1953525168
Blocksize : 512
Power mode : 2 / idle (ready for operation)
IO1 / IO2 / BMCR @ : $1040 / $105E / $1010
spurious interrupts: 0
bounced misaligned cache line start DMA requests: 812
bounced misaligned cache line end DMA requests: 0
bounced non-contiguous buffer DMA requests: 5
*** Error opening device sb600sata.device / unit 2
*** Error opening device sb600sata.device / unit 3
*** Error opening device sb600sata.device / unit 4
*** Error opening device sb600sata.device / unit 5
*** Error opening device sb600sata.device / unit 6
*** Error opening device sb600sata.device / unit 7
*** Error opening device sb600sata.device / unit 8
*** Error opening device sb600sata.device / unit 9
*** Error opening device sb600sata.device / unit 10
*** Error opening device sb600sata.device / unit 11
*** Error opening device sb600sata.device / unit 12
*** Error opening device sb600sata.device / unit 13
*** Error opening device sb600sata.device / unit 14
*** Error opening device sb600sata.device / unit 15


So from this command, DMA seems active on my setup!

Regards,

 Status: Offline
Profile     Report this post  
kolla 
Re: GL4ES: Round 2
Posted on 21-Jul-2019 10:48:22
#34 ]
Elite Member
Joined: 20-Aug-2003
Posts: 3257
From: Trondheim, Norway

Off topic - but is that trashbin guy in down-right corner of Workbench just part of the backdrop, or is it really BenchTrash with a giant icon? Or a clever combination of both? :)


_________________
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC

 Status: Offline
Profile     Report this post  
Rob 
Re: GL4ES: Round 2
Posted on 26-Jul-2019 23:18:21
#35 ]
Elite Member
Joined: 20-Mar-2003
Posts: 6385
From: S.Wales

Quote:
@Petrol
Btw, is MENU fine and fast ,and its happens in game only ?


I have the same problem here with X1000 with an R9 280. The menu and replays run nice and smooth. It just the game play that suffers.

I had CPU and RAM dockies running but turning them of changed nothing. DMA is enabled here and all partitions are formatted with SFS2.

 Status: Offline
Profile     Report this post  

Goto page ( 1 | 2 )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle