gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > Double buffering in Backround Rotation

#1845 - TrisOver - Fri Jan 24, 2003 10:50 am

Hi,
I Use a backround Rotation not wrapped.
I use only a 88x160 display zone.

I have these ideas to use double buffering
- I allow to write to VRAM even it's not VBLANK
- I use 2 display zones: at 0 X Background & at (240-88) X Backround
- so if X Background is 0, I only see first display zone, and if X Backround is (240-88), I Only see second display zone
- I refresh hided display zone with new map every frame
- I swap 0 and (288-40) X Backround positions every VBLANK

Good or bad Idea to optimize my game ?
_________________
TrisOver

#1846 - TrisOver - Fri Jan 24, 2003 10:57 am

Hi,
I Use a backround Rotation not wrapped.
I use only a 66x160 display zone.
This zone is at the center of the screen

I have these ideas to use double buffering
- I allow to write to VRAM even it's not VBLANK
- I use 2 display zones: at 0 X Background & at (240-88) X Backround
- so if XScreen Background is (66/2-120), I only see first display zone, and if XScreen Backround is (240-66/2-120), I Only see second display zone
- I refresh hided display zone with new map every frame
- I swap (66/2-120), and (240-66/2-120), X Backround positions every VBLANK

Good or bad Idea to optimize my game ?
_________________
TrisOver

#1851 - TrisOver - Fri Jan 24, 2003 2:06 pm

forgot my post, I did a schema and it doesn't work
_________________
TrisOver