English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 05 April 2011, 10:18   #1
h0ffman
Registered User
 
Join Date: Aug 2008
Location: Salisbury
Posts: 744
Blitter fighting the CPU

So, I'm trying to get my latest thingy-me-bob to run in a frame. It consists of 4 scopes plotted full width accross the screen which are vertically blitter filled.

If i switch off the blitter calls the whole CPU plotting time take around 2/3 or 3/4 of the raster time. If i switch the blitter calls on, its taking longer than a frame.

Am I right in thinking when the blitter is running, it steals cycles from the CPU? So the CPU would take longer to run the code?

If this is the case, I think I might have to drastically re-think how this thingy-me-bob is working..
h0ffman is offline  
Old 05 April 2011, 10:49   #2
pmc
gone
 
pmc's Avatar
 
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
h0ffman - it's probably chip RAM access where the conflicts are I would've thought cos that's where your graphics data is.

Obviously the blitter and CPU can't access the bus to the chip RAM at the same time so yes, there are conflicts.

You could maybe try setting blitter nasty to allow the blitter to steal cycles from the CPU, might make your blitter operations complete quicker...?

Whether this will help you squeeze it into a frame or not I'm not sure...

Obviously, narrowing the scopes and optimising the rest of the code or, at worst case, cutting something out might be required though...
pmc is offline  
Old 05 April 2011, 11:06   #3
h0ffman
Registered User
 
Join Date: Aug 2008
Location: Salisbury
Posts: 744
I have a plan B, half the scope size and double each line up. Thus halfing the blitter time required.
h0ffman is offline  
Old 05 April 2011, 13:10   #4
Lord Riton
Registered User
 
Lord Riton's Avatar
 
Join Date: Jan 2011
Location: France
Age: 52
Posts: 507
Here is some explanation of this: http://amigadev.elowar.com/read/ADCD.../node012B.html
Lord Riton is offline  
Old 05 April 2011, 13:14   #5
h0ffman
Registered User
 
Join Date: Aug 2008
Location: Salisbury
Posts: 744
Dam it! My own fault for now writing it with Cycle Exact on in the first place!

At least with the changes the general look of the thingy-me-bob should remain.
h0ffman is offline  
Old 05 April 2011, 13:18   #6
pmc
gone
 
pmc's Avatar
 
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
Quote:
Originally Posted by h0ffman
Dam it! My own fault for now writing it with Cycle Exact on in the first place!
It's always worth running the emulator in cycle exact if you're developing your code in the emulator and you want to be reasonably sure that it'll then run OK on a real machine too.

Obviously this holds more true for emulated OCS/ECS 68000 systems as that's where the emu is most accurate.
pmc 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
CPU Filling vs. Blitter Filling Routine victim Coders. General 18 26 January 2014 02:15
Linedraw blitter vs. CPU on 68000 pmc Coders. Asm / Hardware 17 29 February 2012 15:02
A500: max blitter+cpu throughput zaz Coders. General 2 30 March 2010 18:52
Fighting Spirit CD³² MethodGit MarketPlace 0 05 March 2005 15:29

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 18:39.

Top

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