English Amiga Board


Go Back   English Amiga Board > Main > Amiga scene

 
 
Thread Tools
Old 05 November 2019, 22:53   #201
Gorf
Registered User

 
Join Date: May 2017
Location: Munich/Bavaria
Posts: 898
Quote:
Originally Posted by sandruzzo View Post
I did a test with blitter, and it's possible to do with it cp2 via line drawing. By setting interleaved bitplane you can do it. And since you can drive blitter with copper, the only thing that cpu have to do is feeding blitter register with 4, 16 colors chunky pixels!
still not clear to me here...

could you elaborate this with some (pseudo) code?
Gorf is offline  
Old 05 November 2019, 22:54   #202
roondar
Registered User

 
Join Date: Jul 2015
Location: The Netherlands
Posts: 1,723
Isn't that too slow to be useful? Remember, the Blitter only draws a single pixel@1 bitplane in 8 CPU cycles when in line mode.
roondar is offline  
Old 05 November 2019, 22:56   #203
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 1,779
Quote:
Originally Posted by Gorf View Post
still not clear to me here...

could you elaborate this with some (pseudo) code?
Interleaved bitplanes is some sort of chunky but into y directions since you have:

line0 plane0
line1 plane1
line2 plane2
line3 plane3

Chunky bitmap islike this: p0p1p2p3 - p0p1p2p3 - ......

If you get first 4pixel (p0p1p2p3p4), and use it as a patter for blitters' line draw, and you draw a vertical line, you'll get straight cp2, since with blitter you're rotating that 4 pixels
sandruzzo is offline  
Old 05 November 2019, 22:57   #204
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 1,779
Quote:
Originally Posted by roondar View Post
Isn't that too slow to be useful? Remember, the Blitter only draws a single pixel@1 bitplane in 8 CPU cycles when in line mode.
it can do 1 milion of pixels per seconds.
sandruzzo is offline  
Old 05 November 2019, 23:01   #205
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 1,779
Since lines are fixed on ray-casting game, we could even have a game with "flat" walls, but faster and whitout cp2. Maybe evene 1x1 a lot faster..

Copper list won't be so huge, and you'll have cpu free to do other stuffs
sandruzzo is offline  
Old 05 November 2019, 23:14   #206
Gorf
Registered User

 
Join Date: May 2017
Location: Munich/Bavaria
Posts: 898
Quote:
Originally Posted by sandruzzo View Post
it can do 1 milion of pixels per seconds.
that gives you only 16 fps for 320*200 and a single bitplane..

if you have 4 bitplanes interleaved you have a theoretical field of 320*800, that would be 256.000 plixels ... leaving you with 4 frame per second.
8 if you go down to 160*200 and 16 for 160*100.

Not really a big advantage, is it?
Gorf is offline  
Old 05 November 2019, 23:16   #207
roondar
Registered User

 
Join Date: Jul 2015
Location: The Netherlands
Posts: 1,723
Quote:
Originally Posted by sandruzzo View Post
it can do 1 milion of pixels per seconds.
That is 1 million pixels per second@1 bitplane, so you must divide that by the number of bitplanes to get an accurate figure. Meaning for a 4 bitplane screen it's 250.000 pixels per second, not 1 million.

Assuming 320x200, there's 64.000 pixels in a frame. Which translates to a fill rate of about 4FPS. This also assumes you're not doing anything other than blitting, which seems unreasonable.
roondar is offline  
Old 05 November 2019, 23:18   #208
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 1,779
Quote:
Originally Posted by roondar View Post
That is 1 million pixels per second@1 bitplane, so you must divide that by the number of bitplanes to get an accurate figure. Meaning for a 4 bitplane screen it's 250.000 pixels per second, not 1 million.

Assuming 320x200, there's 64.000 pixels in a frame. Which translates to a fill rate of about 4FPS. This also assumes you're not doing anything other than blitting, which seems unreasonable.
Ok, but they arent' using 1x1 at 320x200 pixel, no way you can do on A500 S
stock
sandruzzo is offline  
Old 05 November 2019, 23:22   #209
roondar
Registered User

 
Join Date: Jul 2015
Location: The Netherlands
Posts: 1,723
The point is that even at 160x100 the theoretical maximum frame rate when you're not doing anything except drawing with the Blitter is not far from the one the current CPU drawing routines get (16fps vs around 12 IIRC). Start adding all the stuff that is in the game now and I'm pretty sure you'll end up at the same or lower FPS as just using the CPU.

That said, it is an interesting idea.
roondar is offline  
Old 05 November 2019, 23:23   #210
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 1,779
Quote:
Originally Posted by roondar View Post
The point is that even at 160x100 the theoretical maximum frame rate when you're not doing anything except drawing with the Blitter is not far from the one the current CPU drawing routines get (16fps vs around 12 IIRC). Start adding all the stuff that is in the game now and I'm pretty sure you'll end up at the same or lower FPS as just using the CPU.

That said, it is an interesting idea.
Maybe you can free cpu to do more...
sandruzzo is offline  
Old 05 November 2019, 23:31   #211
DanScott
Lemon. / Core Design

DanScott's Avatar
 
Join Date: Mar 2016
Location: Sunny Bournemouth, UK
Posts: 586
Quote:
Originally Posted by sandruzzo View Post
Maybe you can free cpu to do more...
Post your "test" demo as an ADF, let's see how it works
DanScott is offline  
Old 05 November 2019, 23:32   #212
roondar
Registered User

 
Join Date: Jul 2015
Location: The Netherlands
Posts: 1,723
Look, I genuinely like your out-of-the-box thinking. But this just doesn't seem like a very realistic solution.

I'm not saying it definitely can't be done, but you're essentially suggesting someone who is rather close to completing a game rewrite the entire rendering part (which is not as simple as just drawing a few bobs for a game like this) to try and see if it may get better results using your idea.

Wouldn't it be better to create a full doom/wolf like 3D rendering environment using this technique yourself first? That would serve as a proof of concept so we can actually see if it's worthwhile. That seems to me to be a much better way of doing things, considering how far along this project already is.

Last edited by roondar; 06 November 2019 at 00:01.
roondar is offline  
Old 05 November 2019, 23:37   #213
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 1,779
I'll try to do a demo were i'll use blitter to do cp2 160x100 and see how much fps we can get. I'm not suggesting to change it's rendering engine, I don't see why doing only "texture" walls at 2x2 or worse. Why don't consider just "flat" rendering on A500 and having better visual outcome?

Back in the day, even though I fully understood Amiga limits, I never liked 2x2 rendering
sandruzzo is offline  
Old 05 November 2019, 23:39   #214
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 1,779
Quote:
Originally Posted by DanScott View Post
Post your "test" demo as an ADF, let's see how it works
http://eab.abime.net/showthread.php?...ight=sandruzzo


I'll try to set a demo.
sandruzzo is offline  
Old 05 November 2019, 23:40   #215
roondar
Registered User

 
Join Date: Jul 2015
Location: The Netherlands
Posts: 1,723
I can respect not liking 2x2 rendering, but it considering what's being attempted here I don't see any other option. Remember, even Doom did 2x2 rendering for the main part of the screen in low-quality mode on PC (though overlays etc were kept at full-resolution).

By the way it's certainly possible I misread your intent, we're both non-native English speakers and that can cause confusion
roondar is offline  
Old 05 November 2019, 23:43   #216
DamienD
Global Moderator

DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 43
Posts: 16,907
Quote:
Originally Posted by roondar View Post
Look, I genuinely like your out-of-the-box thinking. But this just doesn't seem like a very realistic solution.

I'm not saying it definitely can't be done, but you're essentially suggesting someone who is rather close to completing a game rewrite the entire rendering part (which is not as simple as just drawing a few bobs for a game like this) to try and see if it may get better results using your idea.
Not the first time sandruzzo or Trachu for that matter, have done this

Instead of telling others how to program / manage their games; let's see yours
DamienD is offline  
Old 05 November 2019, 23:43   #217
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 1,779
Quote:
Originally Posted by roondar View Post
I can respect not liking 2x2 rendering, but it considering what's being attempted here I don't see any other option. Remember, even Doom did 2x2 rendering for the main part of the screen in low-quality mode on PC (though overlays etc were kept at full-resolution).

By the way it's certainly possible I misread your intent, we're both non-native English speakers and that can cause confusion
My fault on English. The point is: why doing somenthing (I'm not talking about this project) that don't suits Amigas' HW well and having an not so visual good outcome?
sandruzzo is offline  
Old 05 November 2019, 23:46   #218
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 1,779
Quote:
Originally Posted by DamienD View Post
Not the first time sandruzzo or Trachu for that matter, have done this

Instead of telling others how to program / manage their games; let's see yours
Every time same old music? How much time I've spent allmost begging for Rygars' OCS gfx? I thought it was close this matter... Please

I allmost finished CHIP game, a simple puzzle game, but guess what? That guy disappeared...Allmost finished
sandruzzo is offline  
Old 05 November 2019, 23:47   #219
DamienD
Global Moderator

DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 43
Posts: 16,907
Quote:
Originally Posted by sandruzzo View Post
Every time same old music?
Same old music; yes most definitely from you

Quote:
Originally Posted by sandruzzo View Post
How much time I've spent allmost begging for Rygars' OCS gfx? I thought it was close this matter... Please
What's that got to do with you trying to shove your ideas down the authors' throats of every new project???
DamienD is offline  
Old 05 November 2019, 23:48   #220
Gorf
Registered User

 
Join Date: May 2017
Location: Munich/Bavaria
Posts: 898
Quote:
Originally Posted by sandruzzo View Post
Maybe you can free cpu to do more...
i somehow doubt that ... since you need the Blitter and Copper to work at full time to draw the lines. After Denise DMA fetch for 4 bitplanes and Copper list (next in priority), what non cpu-blocking slots do you have left for the line-drawing?
I fear you need Blitter-nasty to get to the 1 million pixels per second, but then the CPU is totally blocked without FastRAM

Do you have some calculations here?
Gorf 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
Amiga DRAM chip tester for HYB-514256B with Arduino UNO - Amiga 500/500+ andy2018 support.Hardware 0 31 October 2018 21:27
Amiga 500 Rev.6A VS Amiga 500 Plus with 2MB chip and ACA 500 turrican9 support.Hardware 0 24 December 2016 02:16
Final Fight on AMIGA 500+ (500 Plus), not 500! padremayi support.Games 55 09 March 2016 20:39
Possible to port Alien Breed 3D maps to Doom? (I know AB3D has features Doom can't) dex Coders. General 2 21 January 2012 22:06
GL Doom for Amiga fitzsteve support.Games 1 09 November 2010 12:52

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 13:00.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.13792 seconds with 16 queries