bugBilliards - Bugs: bug #27123, Game freezes towards the end,...

 
 

bug #27123: Game freezes towards the end, can't finish any games

Submitted by:  None
Submitted on:  Tue 28 Jul 2009 02:36:38 AM UTC  
 
Severity: 3 - NormalStatus: None
Assigned to: NoneOpen/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 30 Jul 2009 05:40:09 PM UTC, comment #2:

I'm using libcode1-0.11.1-42.pm.1. I'll get back to you after playing with the numbers in game.lua. Right now I'm at 0.20, 2.0, 2, 0 and nothing much as changed. The game still gets sluggish for the last few balls.

A lot of the times the stick is over my head, meaning the camera zooms in so close that I'm looking at the bottom of the stick instead of over the top. I find that for most of the shots, I need to drag the cursor from the top of the screen to the bottom in order to raise my perspective higher above the table. Sort of like panning out.

After each shot, the camera zooms in on the cue ball. Seems like it would be better if the camera zoomed out so I could see the whole table. Graphics are great.

kevin <pilotgi>
Tue 28 Jul 2009 10:36:29 AM UTC, comment #1:

This is probably a result of the fact that the balls that are caught in the ball return slot jiggle and never come to rest although I can't understand why this would happen in your case only. Unless of course it's due to the ODE version you're using or the way it was configured. Can you post which libode package you're using?

If that is the problem you could try the following to see if that fixes it: find where your package installs the file 'game.lua'. This should probably have ended up in:

/usr/lib/billiards/scripts/game.lua

In this file there should be a line looking like this:

lethargy = {0.01, 0.1, 2, 0},

This defines thresholds of ball speed and spin. When they are crossed the ball is assumed to have come to rest and therefore isn't simulated any longer and it "freezes". As it is now it means: "If the ball has a speed of less than 0.01 m/s and spin less than 0.1 rad/sec for more than 2 timesteps or 0 seconds then freeze it." You'll probably want to try raising the thresholds, the first two numbers, because for some reason they're too low in your case and some balls never drop below them. As you may have guessed, if you set them too high the balls will freeze prematurely when struck instead of rolling to a stop naturally. Anyway try to raise the values as much as possible, so that the game is still playable and see if this gets rid of the problem. If everything is all right then, I'll come up with a better way to fix the problem and release a new version.

Apart from that does the rest of the game (that is, when most/all balls are in play) run smoothly? Do the balls, stick or camera exhibit any weird behavior?

Dimitris Papavasiliou <dpapavas>
Project Administrator
Tue 28 Jul 2009 02:36:38 AM UTC, original submission:

I'm using version 02.2-0.pm.1 from Packman and running it on 64 bit openSUSE 11.1. Every game becomes sluggish when there's only 4 or 5 balls left on the table and eventually freezes up completely. My system has a AMD X2 2.2 Ghz and nvidia 8600 GTS and 3 Gigs of ram.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pilotgi (Posted a comment)
  • -unavailable- added by dpapavas (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 25 Mar 2010 04:35:07 PM UTCdpapavasOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1