03 November 2017, 16:37 | #1 |
Registered User
Join Date: Nov 2008
Location: New Hampshire, USA
Age: 38
Posts: 141
|
AMOS - Double Buffering
I'm working on my first AMOS program -so sorry if I sound like a newbie!
I have some BOBs that I need animated without flicker so I am using the DOUBLE BUFFER command to turn on double buffering. Once I turn on double buffering, I found that CLS does not clear the screen. I played around with the AUTOBACK command, but wasn't able to find a solution. I found a work around - I call a CLS then SWITCH SCREEN and then another CLS - SWITCH SCREEN and CLS again. (With some WAITs in-between) Is this the best method? Also is there a way to turn off double buffering once you turned it on? |
03 November 2017, 18:03 | #2 |
Registered User
Join Date: Mar 2015
Location: Sheffield UK
Posts: 360
|
1) CLS 0
Strangely enough I never encountered this problem until I tested today, but I suppose it's good practice to specify the colour to CLS to, just incase the PAPER colour has been changed during your program run. and 2) BOB UPDATE OFF/ON Should start/stop the DB process for you. Last edited by volvo_0ne; 03 November 2017 at 21:02. |
04 November 2017, 01:07 | #3 | ||
Registered User
Join Date: Nov 2008
Location: New Hampshire, USA
Age: 38
Posts: 141
|
Quote:
Quote:
|
||
04 November 2017, 21:03 | #4 |
Registered User
Join Date: Mar 2015
Location: Sheffield UK
Posts: 360
|
Don't forget that the "0" could be any colour of your palette (sometimes handy for effects)
|
01 January 2018, 11:28 | #5 | |
Registered User
Join Date: Nov 2004
Location: Germany
Posts: 629
|
Quote:
|
|
01 January 2018, 11:43 | #6 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,381
|
Doesn't the Autoback command control that?
|
01 January 2018, 13:48 | #7 | ||
Registered User
Join Date: Nov 2004
Location: Germany
Posts: 629
|
No.
As far as i know, amos pro does not automatically make a double buffered screen. As this would take up more memory and slow everything down. You need to use "Double Buffer" command, to create an invisible buffer copy of the screen. But to turn off this system, then the screen has to be closed and to be reopened. Quote:
Quote:
AutoBack Double Buffering Blitter Objects and the last one, but important for bobs on Single buffered screen: Updating objects It sounds a bit complicated, but only practice and the examples can show you how it is done. Last edited by Dan; 01 January 2018 at 13:53. |
||
21 August 2024, 19:45 | #8 |
DarkN3mo
Join Date: Jan 2021
Location: FRANCE
Posts: 46
|
does double buffering apply to all screens or just a specific screen?
|
21 August 2024, 20:14 | #9 |
Aghnar
Join Date: Jan 2019
Location: France
Posts: 157
|
Double buffer is applied on the current selected screen when the instruction is executed
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Double Buffering | MartinW | Coders. C/C++ | 8 | 11 October 2017 00:20 |
Latency tests - No difference between "No buffering" and "Double buffering" | Dr.Venom | support.WinUAE | 6 | 24 September 2017 10:18 |
how to display bob correctly with double buffering | Blackgoat | Coders. AMOS | 2 | 15 March 2016 22:10 |
flawless double buffering | dalton | Coders. General | 2 | 17 May 2011 07:09 |
AGA double buffering using ChangeScreenBuffer() | NovaCoder | Coders. General | 1 | 03 November 2010 00:34 |
|
|