09 June 2016, 10:42 | #1 |
Registered User
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,344
|
Collision Detection
Hi,
I'm going to implent a collision detection system with bob and background on A1200 + Fastram. My thought is to do it with cpu on fast-ram. Is That the fastest way to go, or blitter collisions if faster? |
09 June 2016, 15:41 | #2 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,377
|
If the bitmaps and bobs are already in chip RAM for display, surely the blitter would be quicker as you would have to copy them all to fast RAM to do the detection. In chip RAM there's probably no point using the CPU to do it, but I could be wrong. If you're assembling the frames in fast RAM and then copying them to chip RAM to display, then you would probably be better off using the CPU.
|
09 June 2016, 15:47 | #3 |
Phone Homer
Join Date: Jun 2006
Location: 5150
Posts: 5,809
|
How you going to do collision with Bobs and the background? Maths and boxing is probably what is normaly used - using a small amount of CPU that even a ZX could probably handle - you already have your map in Ram? so you already have your collision data ready to be read.
Last edited by Retro1234; 09 June 2016 at 15:55. |
09 June 2016, 16:25 | #4 |
Registered User
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,344
|
Yes, I have my map on ram, even a copy of collision mask is on fast ram
|
09 June 2016, 16:34 | #5 |
Phone Homer
Join Date: Jun 2006
Location: 5150
Posts: 5,809
|
You can just use your map if you think a map editor in reverse instead of writing to the map your reading it seeing whats walkable and whats not.
|
10 June 2016, 12:50 | #6 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,377
|
Yeah, then just use the CPU if the information's already there in fast RAM to be used.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sprite Bob Collision | Retro1234 | Coders. AMOS | 17 | 12 April 2018 23:33 |
Hardware collision detection in Amiga games? | nandius_c | Coders. Asm / Hardware | 25 | 29 April 2016 23:56 |
Sprite collision help | Shatterhand | Coders. Blitz Basic | 8 | 12 December 2015 23:02 |
Collision detection: 2 doubts | nandius_c | Coders. Asm / Hardware | 6 | 30 November 2014 00:53 |
Slamtilt and RTC collision | Predseda | support.Games | 5 | 22 August 2009 22:28 |
|
|