eclipse - LibGdx getUserData() method -> PC CPU 100% -


okay haven't seen that.

i'm doing game in libgdx. i've set up, contact listener on world object have 4 methods in class ( begin contact, end contact, presolve, postsolve)

    @override         public void begincontact(contact contact) {              fixture f1 = contact.getfixtureb();             float fl =  (float) f1.getbody().getuserdata();                       // more code goes here          } 

if run game, cpu increase around 8%. if run second time go around 20%, third time around 30% , 100% ( closed instances of game ). game not running cpu stay @ 100%. can fix closing , reopening eclipse.

i went step step in code , if comment line

float fl =  (float) f1.getbody().getuserdata(); 

everything works okay. if run 10 instances of game @ same time, cpu won't go above 30%.

any ideas?

my computer specs: intel pentium quadcore q6600 2.4ghz, 4gb ram...

it's not possible process keep running, after you've terminated it.

it might close window, process still running. in eclipse can see if process still active, or not when check red square button in console view. if 1 still active , can pressed, process still running. clicking should kill process, if it's stuck in endless loop example.

if run several instances of program @ same time, console view show 1 of instances @ time, can switch 1 it's supposed show via little triangle next little monitor icon (tooltip: "display selected console"). way can check instances , see if of them still running.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -