English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 25 January 2014, 19:55   #1
Cowcat
Registered User
 
Join Date: Apr 2013
Location: Mallorca
Posts: 758
BlitzQuake

First, a better video:
[ Show youtube player ]

Second:
Got permission from other author of the original code to upgrade Blitz with new code of him (thanks Phx). Testing more ppcasm code that didn't work on the original source (in video). Don't really know ppcasm but I make it work

The original code is untouched (don't want to piss someone). I just added that windowmode-playing feature, and updated audio and asm code.

I can build a m68k version with those new features if it is requested (no miracles for m68k for speed). Probably try with gcc. Unlikely a ppc gcc version (somebody with a proper one buildchain?), but it's getting very close to original gcc.

As previously commented, I made a version than works for those BVision PPC users with problems with the original build as myself. And then more things

Just learning to program myself with Amiga. New "official" build in future.
Cowcat is offline  
Old 25 January 2014, 23:35   #2
roy bates
Registered User
 
Join Date: Apr 2011
Location: birmingham
Age: 55
Posts: 2,827
if someone could fix the ahi on this for 68k machines i would be interested.

you know,if you can
roy bates is offline  
Old 26 January 2014, 16:17   #3
Cowcat
Registered User
 
Join Date: Apr 2013
Location: Mallorca
Posts: 758
What was the problem?. Dificult to see whats going on my 040/25mhz side: It's like a 4 fps slideshow and stuttering sound effects. Seems like an old vbcc version of mine was 1 frame faster than the gcc one ........I'm on it anyway (vbcc 68060 version maybe ?)
Cowcat is offline  
Old 27 January 2014, 02:30   #4
fitzsteve
Professional slacker!
 
fitzsteve's Avatar
 
Join Date: Jul 2009
Location: Kent, UK
Age: 44
Posts: 6,683
Send a message via MSN to fitzsteve
Ahi is stuck at 11500 kHz IIRC so sounds like crap. Even on 16bit sound cards.
fitzsteve is offline  
Old 27 January 2014, 03:02   #5
matthey
Banned
 
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
@Cowcat
Is there any chance the source could be made available or uploaded to Aminet? BlitzQuake/glQuake has one of the best and most thorough Warp3D implementations and is one of the most optimized Amiga games, at least for the 68k. It's a great benchmark program too. The big problem with 68k performance is the horrible optimization of the Warp3D drivers. They have about twice as many instructions as needed . I made optimized patched versions of the Warp3D.library and Voodoo drivers which helped noticeably and fixed some bugs. I get 25fps at 640x480x16 on my 68060@75MHz with Mediator+Voodoo 4 which is fully playable. I might be interested in playing around with, debugging and optimizing the source but it would mostly be 68k side. The PowerPC side could see some benefits from bug fixes though.

There is a newer unreleased version of vbcc that 0.9b that has *many* improvements and bug fixes. I was waiting on a bug fix for fp (all sizes) to unsigned 32 bit int conversions when Frank Wille must have become busy with Solid Gold. Maybe Dr. Volker Barthelmann hasn't had time to fix the bug in the 68k backend also. We were working on c99 math support for vbcc 68k+FPU but I was stalled by the lack of an important bug fix as I was starting testing. Frank was wanting to release an update last year for vbcc so maybe he just needs another reminder since you have been talking to him anyway .
matthey is offline  
Old 27 January 2014, 11:17   #6
roy bates
Registered User
 
Join Date: Apr 2011
Location: birmingham
Age: 55
Posts: 2,827
Quote:
Originally Posted by Cowcat View Post
What was the problem?. Dificult to see whats going on my 040/25mhz side: It's like a 4 fps slideshow and stuttering sound effects. Seems like an old vbcc version of mine was 1 frame faster than the gcc one ........I'm on it anyway (vbcc 68060 version maybe ?)

i get 25 fps on mine.(yes,thats on 68k)


as steve(fitzsteve) has mentioned the sound is rubbish and stuck at 11,500 i think this was because the auther didnt know much about ahi to fix it.
i think he mentioned that in the docs somewhere.
normal non ahi sound through paula is fine...


it would nice to see some improvement in the sound quality and maybe some optimizations the render end.
roy bates is offline  
Old 27 January 2014, 12:49   #7
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Quote:
Originally Posted by matthey View Post
There is a newer unreleased version of vbcc that 0.9b that has *many* improvements and bug fixes.
...
Maybe Dr. Volker Barthelmann hasn't had time to fix the bug in the 68k backend also.
Yes, unfortunately he had no enough time for vbcc in the last months. So I focussed myself on... different projects.


Quote:
We were working on c99 math support for vbcc 68k+FPU but I was stalled by the lack of an important bug fix as I was starting testing. Frank was wanting to release an update last year for vbcc so maybe he just needs another reminder since you have been talking to him anyway .
I didn't forget that, but a release doesn't make sense until Volker fixed the open bugs.
There were also many improvements for the Atari target over the last year, including a ColdFire version.
phx is offline  
Old 27 January 2014, 13:53   #8
Cowcat
Registered User
 
Join Date: Apr 2013
Location: Mallorca
Posts: 758
Yep. Sound code from Phx Warpos last port, to my ears, improve paula output but unfortunately AHI seems to have the same problems posted.

Still working on a m68k port: My "windowmodeplay" happens to stall the program (going in out of main menu, etc): Too much for 040/25mhz & probably could happen the same on Warpos. A happy accident playing with menu.c code allowed that. Not very professional, & amateurish but worked for me. It's a simple rutine that checks if we are in "-windowmode" and disables mousepointer & mouse handler, then enables it again. Brutal?, maybe, but it works as seen on video (or maybe for people who downloaded the last version).

I need to fix things to post the whole code here, just to be sure it compiles properly for both versions. Time.
Cowcat is offline  
Old 27 January 2014, 14:21   #9
fitzsteve
Professional slacker!
 
fitzsteve's Avatar
 
Join Date: Jul 2009
Location: Kent, UK
Age: 44
Posts: 6,683
Send a message via MSN to fitzsteve
Would it be possible to get this to work with CV64/3D? There is a 15bit Warp3D driver, it supports very little via the S3Virge Chip with only 4mb VRAM, I think Decent in Warp3D is the only game that actually works with it!

But maybe Quake on the lowest possible settings?

I played Quake and Quake II back in the day with an 8mb Voodoo II
fitzsteve is offline  
Old 27 January 2014, 14:57   #10
Cowcat
Registered User
 
Join Date: Apr 2013
Location: Mallorca
Posts: 758
@fitzsteve
The first thing you could check is if minigl lib runs on your system. You have to compile one for yourself & see if their demos work. No minigl, no glquake
Cowcat is offline  
Old 27 January 2014, 15:46   #11
fitzsteve
Professional slacker!
 
fitzsteve's Avatar
 
Join Date: Jul 2009
Location: Kent, UK
Age: 44
Posts: 6,683
Send a message via MSN to fitzsteve
Quote:
Originally Posted by Cowcat View Post
@fitzsteve
The first thing you could check is if minigl lib runs on your system. You have to compile one for yourself & see if their demos work. No minigl, no glquake
Hi!

Yes, Warp3D works on my system, I can see the Gears Demo albeit very slow!

I have also in my system 040@40mhz (WarpEngine) I'm sure really it wont be fast enough for any serious playability but would be nice to see as proof of concept.
fitzsteve is offline  
Old 27 January 2014, 16:45   #12
Cowcat
Registered User
 
Join Date: Apr 2013
Location: Mallorca
Posts: 758
Oks. But I mean programs that were compiled with minigl static lib. Sure Warp3D and Gears Demo run, but Gears Demo from minigl last OS3 source code, or others on your hardware I really don't know.
Cowcat is offline  
Old 27 January 2014, 17:34   #13
matthey
Banned
 
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
Quote:
Originally Posted by phx View Post
I didn't forget that, but a release doesn't make sense until Volker fixed the open bugs.
Yes, unfortunately he had no enough time for vbcc in the last months. So I focused myself on... different projects.
I'm happy to hear the update is not forgotten or abandoned. You did find some constructive use of your time so I won't complain .

Quote:
Originally Posted by fitzsteve View Post
Would it be possible to get this to work with CV64/3D? There is a 15bit Warp3D driver, it supports very little via the S3Virge Chip with only 4mb VRAM, I think Decent in Warp3D is the only game that actually works with it!
The CV64/3D might be tricky to get running. The Virge has many hardware limitations and odd behaviors. The Virge Warp3D driver was not updated to the latest version of Warp3D so it's kind of patched in with some functionality lacking. The good news is that the 68k optimization of the Warp3D Virge driver is better than for the Voodoo or Permedia. You will want to run OxyPatcher/CyberPatcher/MuRedox as with most fp programs because of the missing FINT/FINTRZ on the 68040. You might try with and without my patched Warp3D.library which should work with the Virge driver and provide a minor speedup. It may be possible to get the CV64/3D to run Quake at reduced quality but it would probably require testing with the board in the developers machine. It's probably a time eater too.
matthey is offline  
Old 27 January 2014, 18:04   #14
James
Registered User
 
Join Date: Mar 2010
Location: Beckenham/England
Posts: 795
Quote:
Originally Posted by fitzsteve View Post
Would it be possible to get this to work with CV64/3D?
The pre Aminet release of GLQuake works on my A1500 with 68040 and CV64/3D. It runs slower than software Quake though. Try it for yourself:

GLQuake68k_old.lha

@Cowcat

I would love to try out a new 68k version. Any chance you could add in cdplayer.library support

http://aminet.net/package/util/libs/cdplayer_lib_ahi

With this it would be possible to play audio from a CD image, or when there is no audio link between the CD drive and the computer. AwinQuake already supports this:

http://aminet.net/package/game/shoot/awinquake
http://aminet.net/game/shoot/awinquake_src.lha

Unfortunately the cdplayer.library version on Aminet has some problems, but this previous version was working well:

cdplayer_lib_ahi.lha
James is offline  
Old 27 January 2014, 18:13   #15
fitzsteve
Professional slacker!
 
fitzsteve's Avatar
 
Join Date: Jul 2009
Location: Kent, UK
Age: 44
Posts: 6,683
Send a message via MSN to fitzsteve
Hi James!

Thanks for that, I'll try it out

I see you're local, did you see my post's about our little Computing meet up on Sat 1st Feb? It's in Otford, Kent if you'd like to come along and bring an Amiga or two with you!

Reply in my thread if you're interested:

http://eab.abime.net/showthread.php?t=71216

Steve.
fitzsteve is offline  
Old 27 January 2014, 18:32   #16
Cowcat
Registered User
 
Join Date: Apr 2013
Location: Mallorca
Posts: 758
@James
It's gonna be a long year The cdlib could be an interesting feature to add, but a little one compared to a new vbcc or warp3d patched libraries (patch for PPC ones?) . I will look to that in future. Now I need to redo a proper m68k build
Cowcat is offline  
Old 27 January 2014, 22:18   #17
thellier
Registered User
 
Join Date: Sep 2011
Location: Paris/France
Posts: 274
Hello

I suppose BlitzQuake textures will use too much VRAM for the CV64-3D...
But I am not sure .... so give it a try with the smaller res screen possible to economize memory (320x200x15bits ?)


>The pre Aminet release of GLQuake works [...] CV64/3D. It runs slower than software [...]
Perhaps due to the fact that all texs cant fit in VRAM so Warp3D copy them from RAM to VRAM for all drawing operation

>BlitzQuake/glQuake has one of the best and most thorough Warp3D implementations
I agree : BlitzQuake perform very well on Wazp3D/WinUAE/OpenGL renderer
BlitzQuake is certainly the best Warp3D prog ever


Alain Thellier - Wazp3D
thellier is offline  
Old 28 January 2014, 11:02   #18
roy bates
Registered User
 
Join Date: Apr 2011
Location: birmingham
Age: 55
Posts: 2,827
does anyone know how much vram blitzquake uses?

it might answer a few questions.
roy bates is offline  
Old 28 January 2014, 12:44   #19
Cowcat
Registered User
 
Join Date: Apr 2013
Location: Mallorca
Posts: 758
No idea. Command option -maxsize it was ment to allow lower ram conditions for Virge users. It didn't work properly, at least on my hardware (you get trashed display at menu, etc). I made it work 'couse my permedia is half busted and has problems. I use -maxsize 128

Last edited by Cowcat; 28 January 2014 at 20:19.
Cowcat is offline  
Old 28 January 2014, 19:15   #20
matthey
Banned
 
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
Quote:
Originally Posted by Cowcat View Post
New build for m68k 060. On -windowmode going to main menu in-out allows to free mouse, etc,etc. Check please.
Window mode has problems clearing and redrawing the window here. The game works otherwise. The mouse seems to be freed in the main menu. I tried in fullscreen and the game seems to work fine. The vbbc compile works better than I would have expected given some of the bugs we found. There is maybe a few more minor gfx glitches although the gcc compile has a few artifacts as well. The speed is a little worse overall but it's faster in some places. The executable size is smaller with vbcc which is nice. The new vbcc will have some more optimizations for the 68k and 68060 in particular so it may well pull even in 68k code generation to GCC 2.95.3 which Christian Michael used in the last version of BlitzQuake.

The Paula sound didn't work at all but it sometimes doesn't with the old version of BlitzQuake.

The best and fastest chance for speedups and new features is to let Alain Thellier look over the source. He knows Warp3D inside and out having written a complete software replacement. He knows which Warp3D functions are fastest and which can be replaced by faster versions. He may be able to spot slowdowns in Warp3D algorithms. He knows 3D like no other Amigan. If you could get him interested and let him see the code, he would probably just make suggestions and offer a function replacement from time to time. I think everyone is glad to see that you resurrected the project and have time to play with it. I hope you recognize and use all the resources you have available.
matthey is offline  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
BlitzQuake - Flashing White Screen? fitzsteve support.Games 20 21 October 2010 23:49
Blitzquake (GLquake) mouse look Angus support.Games 0 11 October 2008 00:46
BlitzQuake Install Coolit support.Games 0 02 September 2005 21:33

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:33.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10269 seconds with 14 queries