Search:

Type: Posts; User: NightMFC

Search: Search took 0.31 seconds.

  1. Re: Why does my code's Fps run faster when i have a program running in background?

    Oh yes. i noticed i dont even need the bufferedImage. i edited my last post adding a ball animation. but it looks so fuzzy, should i try double buffering or something?
  2. Re: Why does my code's Fps run faster when i have a program running in background?

    Do u suggest i go with something like this? or am i still getting it wrong? because the ball looks soo fuzzy =/




    public class Start {

    public static void main(String[]args){
    Main main...
  3. Re: Why does my code's Fps run faster when i have a program running in background?

    How do i use the EDT to paint within this example? can you give me a hint?

    the rest is just some silly drawing g.fillPolygon(x[],y[],n);


    import java.awt.Dimension;
    import...
  4. Re: Why does my code's Fps run faster when i have a program running in background?

    oh gosh its not that hard to get. yes im drawing in a Swing component, its just a Canvas. G is a reference to Graphics2D indeed.

    here the full code:



    import java.awt.Canvas;
    import...
  5. Re: Why does my code's Fps run faster when i have a program running in background?

    sure, its very simple.

    long unprocessedTime = 0;
    int frames = 0;
    long nanoPerMove = 1000000000/60;
    long lastFpsTime = System.currentTimeMillis();


    while(running){
    long now...
  6. Re: Why does my code's Fps run faster when i have a program running in background?

    first of all yes, by fps i ment frames per second.
    second, well i have to main methods. One that updates the scene , the other renders it. the fps measures system, in lapses of 1 second measures how...
  7. Why does my code's Fps run faster when i have a program running in background?

    Well thats my question.
    When i run my code in eclipse my fps are 100, but if i open for expample a google chrome windows my code's fps goes up to 500. same happens if i open for example itunes, etc....
Results 1 to 7 of 7