Hey guys thanks for the replies
I tried the loop you proposed, not sure what to say...
I ran in 15 times. 3 of which it ran at the normal 'intended' speed, 11 times it ran at the slower speed, again the same as seen before with the last loop. 1 time it ran at an insanely fast speed, everything was whizzing across the screen, havnt seen that before ^^. How the hell can the same code run at such varying speeds?
I'm starting to wonder if it's something I've done wrong with my setup. If I change the time for it to wait, to say, 10000 or even 0, the majority of times I run it it STILL goes at this slow speed, only occasionally going at the new speed.
class main extends JFrame implements KeyListener
public main()
{
super("Name");
this.setSize(1130,700);
this.setResizable(false);
this.setIgnoreRepaint(true);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setVisible(true);
this.addKeyListener(this);
createBufferStrategy(2);
bs = getBufferStrategy();
There's nothing stupid here is there?
No reason in particular for the 32fps. Its got little that moves and is slow moving at that. Is just a demo for some concept.