English Amiga Board

English Amiga Board (http://eab.abime.net/index.php)
-   Coders. General (http://eab.abime.net/forumdisplay.php?f=37)
-   -   Collision Detection (http://eab.abime.net/showthread.php?t=83031)

sandruzzo 09 June 2016 11:42

Collision Detection

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?

Daedalus 09 June 2016 16:41

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.

Retro1234 09 June 2016 16:47

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.

sandruzzo 09 June 2016 17:25

Yes, I have my map on ram, even a copy of collision mask is on fast ram

Retro1234 09 June 2016 17:34

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.

Daedalus 10 June 2016 13:50

Yeah, then just use the CPU if the information's already there in fast RAM to be used.

All times are GMT +2. The time now is 03:14.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.

Page generated in 0.03810 seconds with 11 queries