bufferedstrategy

When using createBufferStrategy() in java, does it help to have more than 2 buffers? Is there a downside?

大憨熊 提交于 2019-12-02 04:28:42
问题 It seems like most people recommend just using 2 or 3. Is that just because more than 3 takes up too much processing power or something (forgive me I'm kind of new to this)? In what kind of programs would you use more than 3 buffers? 2 or 3 works fine for my program, I'm just curious. 回答1: Actually its pretty easy to understand once you know the benefits of buffer strategies. Let's take a brief look at what happens in all three cases. In single buffering you have only one display to write