Questions tagged [bufferedstrategy]
5 questions
2
votes
1 answer
When using createBufferStrategy() in java, does it help to have more than 2 buffers? Is there a downside?
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…

Miles Johnson
- 123
- 5
1
vote
0 answers
What is BufferStrategy.show() doing?
In my code, I noticed that I get the same result when I remove the call to the show() method of the BufferStrategy.
I have a function which draws a BufferedImage using the drawImage() method.
public void swapBuffers()
{
…

ToopDoop
- 11
- 2
1
vote
0 answers
Java: When should I use a paint() method?
I have seen at least 2 ways of displaying graphics and animating in java, for example in order to make a game. One uses the paint method, which would appear to be pretty simple. The other uses a while loop, inside of which you configure your fps,…

Nicolas Martorell
- 31
- 1
- 5
0
votes
1 answer
Grey screen when using Windows, but JFrames are fine
This test code making use of JFrames works as intended (will close after 10 secs).
// **** Imports ****
import java.awt.*;
import javax.swing.JFrame;
public class TestDisplay extends JFrame {
// **** Constructor ****
public static void…

ArmouredHeart
- 23
- 5
0
votes
1 answer
Parse batch of SequenceExample
There is function to parse SequenceExample --> tf.parse_single_sequence_example().
But it parses only single SequenceExample, which is not effective.
Is there any possibility to parse a batch of SequenceExamples?
tf.parse_example can parse many…

m.akop
- 21
- 3