Bank Question

BlitzPlus Forums/BlitzPlus Beginners Area/Bank Question

Siopses(Posted 2007) [#1]
Any of you bank user's here's a query for you... Do large banks affect the performance of buttons or other gui gadgets?
I think this may be the case because I have created an error
free program with a CreateBank() of 88 int, and a test program of a bank with an int of 12. I have made an identical
function for bolth of the programs:
Function Buttonz(guibank)
	circle=PeekInt(guibank,4)
	rectangle=PeekInt(guibank,8)
		Select EventID()
			Case $401
				If EventSource()=circle Then
					SetButtonState(rectangle,False)
						Else
							If EventSource()=rectangle Then
								SetButtonState(circle,False)
							EndIf
				EndIf
		End Select
End Function 

The function works in this version, but not with the bigger
int level, which is listed below. Please do not crtique my
function, or tell me how to improve it but merely answer this question: Do large banks affect the performance of buttons or other gui gadgets?
Function Buttonz(guibank)
	circle=PeekInt(guibank,12)
	rectangle=PeekInt(guibank,16)
		Select EventID()
			Case $401
				If EventSource()=circle Then
					SetButtonState(rectangle,False)
						Else
							If EventSource()=rectangle Then
								SetButtonState(circle,False)
							EndIf
				EndIf
		End Select
End Function 

Help much apreciated!,
Siopses
{EDIT}
Note: The problem seem's to be caused by menu's, I'm researching this breakthrough now.


Siopses(Posted 2007) [#2]
Sorry guy's, problem solved... I apoligize for the girlish
spazz attack on my part.
Thanks,
Siopses


Matty(Posted 2007) [#3]
Although you've worked out what had gone wrong - having a large bank will not affect performance in itself. However updating every byte in a bank that represents the screen for instance (eg 640*480*4 bytes for a screen res of 640*480 at 32 bit color) each frame will likely have a performance hit.