13 February 2016, 13:04 | #1 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
Is a BeginRefresh() / EndRefresh() really required?
Hi,
I have read that for a SMARTREFRESH window the minimum 'refresh'-action to perform is to act on incoming IDCMP_REFRESHWINDOW messages with a call to BeginRefresh(window) followed directly by an EndRefresh(window,TRUE) to discard unneeded cliprects data. But the information I read did not tell me what happens when I turn off these messages. Is it mandatory to listen to IDCMP_REFRESHWINDOW or does intuition handle the cliprects by itself when I clear the IDCMP_REFRESHWINDOW bit with ModifyIDCMP(window) so that I don't get these refresh messages? It seems worth to ask this for me because if it is mandatory, why is it possible to turn the messages off? Thus the bit doesn't have a true sense. greets, AGS Last edited by AGS; 13 February 2016 at 13:25. |
14 February 2016, 20:06 | #2 |
Registered User
Join Date: Oct 2014
Location: Europe
Posts: 471
|
In my understanding, a smartrefresh window gets its refreshs done smart by the system (Intuition). so, you are doing something completely wrong. unless i am wrong. :
|
14 February 2016, 22:23 | #3 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,001
|
Even with smart refresh you have do deal with IDCMP_REFRESHWINDOW.
The only way to avoid it is to set WFLG_NOCAREREFRESH (or WA_NoCareRefresh) during OpenWindow/OpenWindowTags. |
14 February 2016, 22:36 | #4 | ||
Banned
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
|
Quote:
Quote:
SMARTREFRESH windows automatically update the on screen parts but scrolling can require new data updates. A SUPERBITMAP window knows the data off the screen so scrolling can be done automatically but this is slow on the Amiga and sometimes much slower with RTG while needing lots of graphics memory. SIMPLEREFRESH is generally fastest on RTG. SMARTREFRESH is generally fastest with the custom chips. |
||
18 February 2016, 18:33 | #5 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
Thanks. I am doing it, use the ...Refresh() functions. As far I understand it, in my case, a SMARTREFRESH window, the refresh is supposed to relate only to the areas that become visible when the window is dragged bigger.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DevPac required | NovaCoder | Coders. General | 6 | 08 September 2009 11:37 |
Help required with A1500 | Hoops | support.Hardware | 7 | 05 August 2008 20:46 |
Required? | girv | project.SPS (was CAPS) | 1 | 24 December 2006 15:47 |
Required ICONS... | nikvest | request.Other | 2 | 10 July 2006 02:23 |
More help required | Galahad/FLT | request.Demos | 2 | 16 August 2002 21:08 |
|
|