Welcome, Guest. Please login or register.

Author Topic: fast display of blitter objects (bobs)  (Read 1522 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline hextremeTopic starter

  • Newbie
  • *
  • Join Date: Apr 2007
  • Posts: 2
    • Show only replies by hextreme
    • http://minniatian.republika.pl
fast display of blitter objects (bobs)
« on: May 19, 2007, 08:45:53 AM »
Hello!
I have problem with Bobs (blitter objects). They are displayed too slow. How to speed'em up? For example how to create environment like in Benefactor under WHDLoad, which saves old View, shut downs system until F10 is pressed and there are even many objects drawn by Blitter without lags.
I don't have graphic card so it's under AGA chipset.
Thanks in advance for response! If you wish sample code just ask.
 

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2280
  • Country: us
  • Gender: Male
    • Show only replies by SamuraiCrow
Re: fast display of blitter objects (bobs)
« Reply #1 on: May 19, 2007, 08:19:54 PM »
The reason the bobs are too slow is a shortcoming in the speed of the AGA chipset.  There are some patches like the Games Master System that will do CPU-assisted blitting to shore up the problem but this is only a kludge.  I'm afraid the best solution is to write software with graphics cards in mind.  (Or use vsprites instead of bobs.)
 

Offline Cass

  • Hero Member
  • *****
  • Join Date: Apr 2003
  • Posts: 826
  • Country: 00
    • Show only replies by Cass
Re: fast display of blitter objects (bobs)
« Reply #2 on: May 19, 2007, 10:27:41 PM »
In AMOS you could switch off the multitasking by POKing the exec library, and activating AMAL routines.
Also synchronising with the VBlank, you get a smoother effect.
"If we don't got it, you don't want it!"
 

Offline hextremeTopic starter

  • Newbie
  • *
  • Join Date: Apr 2007
  • Posts: 2
    • Show only replies by hextreme
    • http://minniatian.republika.pl
Re: fast display of blitter objects (bobs)
« Reply #3 on: May 20, 2007, 07:25:50 AM »
Thanks for response! I finally found the solution - I am disabling all interrupts by banging hardware and writing value 0x7FFF into custom.intena and bobs run very fast. :-)
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by Karlos
Re: fast display of blitter objects (bobs)
« Reply #4 on: May 20, 2007, 01:23:10 PM »
Quote

hextreme wrote:
Thanks for response! I finally found the solution - I am disabling all interrupts by banging hardware and writing value 0x7FFF into custom.intena and bobs run very fast. :-)


Just make sure you re-enable the relevant ones when you want to do any I/O ;-)
int p; // A