using of two buffers instead of one in firework example?

Hello,
After what I downloaded PocketHAL 0.7.7 evaluation version, I decided to analyze examples to understand how the library works. Therefore, I looked at Firework example.
I noticed tha the firework is firsty drawn into m_buffer2 buffer, which is at one moment coppied to backbuffer returned by display->GetBackBuffer(), and this is then swapped via display->Swap(); to video RAM.
In other words, instead of using one buffer that would be flipped to the video ram, there is a second buffer used.
Is this approach somehow beneficial to PocketHAL? Logic says to me, that it is most likely a waste of computer resources. I understand the need of one buffer that is coppied to VRAM once, to avoid delays from waiting to vsync, but what that second buffer is good for?
Is is a technique I've read about, called DoubleBuffering?
Thank you,
with Regards,
Rene.
After what I downloaded PocketHAL 0.7.7 evaluation version, I decided to analyze examples to understand how the library works. Therefore, I looked at Firework example.
I noticed tha the firework is firsty drawn into m_buffer2 buffer, which is at one moment coppied to backbuffer returned by display->GetBackBuffer(), and this is then swapped via display->Swap(); to video RAM.
In other words, instead of using one buffer that would be flipped to the video ram, there is a second buffer used.
Is this approach somehow beneficial to PocketHAL? Logic says to me, that it is most likely a waste of computer resources. I understand the need of one buffer that is coppied to VRAM once, to avoid delays from waiting to vsync, but what that second buffer is good for?
Is is a technique I've read about, called DoubleBuffering?
Thank you,
with Regards,
Rene.