Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • B bjgf
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 127
    • Issues 127
    • List
    • Boards
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • BlueJ
  • bjgf
  • Issues
  • #1452
Closed
Open
Issue created Mar 13, 2008 by Neil Brown@nccbMaintainer

[GREENFOOT-108] Sound loading is very slow when using applets

Playing sounds in applets (on MyGame) has a long lag when the sound is played for the first time.

Quote from email exchange with Davin: "I just noticed that when a scenario is played, there are various requests to load image files directly from the server. That is, it makes a http request to try and retrieve the file from the server. The requests fail, obviously, because the file is not there, and I guess it then falls back to loading the image from the jar file containing the scenario, but the act of performing a http request causes a noticeable lag. (In asteroids for example, the first time I shoot, the game pauses for a second or two)."

and:

"I am seeing requests like:

127.0.0.1 \- \- [EST|15/Feb/2008:15:16:08] "HEAD /scenarios/images/images/rock.gif HTTP/1.1" 404 0 \- -> /scenarios/images/images/rock.gif 127.0.0.1 \- \- [EST|15/Feb/2008:15:16:09] "HEAD /scenarios/images/images/rocket.png HTTP/1.1" 404 0 \- -> /scenarios/images/images/rocket.png 127.0.0.1 \- \- [EST|15/Feb/2008:15:16:11] "HEAD /scenarios/images/images/rock.gif HTTP/1.1" 404 0 \- -> /scenarios/images/images/rock.gif

... when I view the asteroids scenario (the above is from the mygame logs). "


Issue metadata

  • Issue type: Bug
  • Priority: Medium
  • Fix versions: 2.0
Assignee
Assign to
Time tracking