当我调用 "BufferStrategy.show()" 时会发生什么?

What happens when I call "BufferStrategy.show()"?

Graphics g = bs.getDrawGraphics();
g.setColor(Color.BLACK);
g.fillRect(0, 0, getWidth(), getHeight());
g.dispose();
bs.show();

调用bs.show()是否实际显示缓冲的帧? 如果是这样,如何?它只是说它使 下一个 可用缓冲区可见,但是当前缓冲区呢?什么时候显示?

根据documentation

Makes the next available buffer visible by either copying the memory (blitting) or changing the display pointer (flipping).

简单地说,这意味着 BufferStrategy 成为 JFrame 的当前缓冲区。