| | | algomeysa2 |  |
| Posted: Mon Jun 09, 2008 11:36 am Post subject: Sound in Flash 5 game causes slowndown on newer computers |  |
| |  | |
I've got a PC from 2004, I think it's a pentium 3 3.3 ghz.
I've occasionally still been using Flash 5 to make some little games. I know, ancient history, but it's what I can churn out stuff fastest with.
The problem is, when I run it on this older machine, it works fine...
....but when I tried it out recently on several much newer computers, and, I'd think, superior, I found a weird thing, when I play a .wav file, there's a distinct hiccup on the newer machines (when I've got keyboard-controlled objects moving around), the game sort of pauses for a split second, and it's annoying.
Basically I've got the sound set up like this early on: (kaboom being a .wav file with linkage of that name, "kaboom"
mySound=new Sound(); mySound.attachSound("kaboom"); mySound.setVolume(25);
And then, later in the game when I need that sound:
mySound.start();
But when I've got a keyboard controlled object moving around, when the sound plays, the game sort of hiccups, there's a distinct pause to the moving object (car, spaceship, whatever) when I try it on newer machines.
But as I say, it works swimmingly on my older machine, Any idea why, that Flash 5 sound seems to be more problematic on a newer machine?
It's annoying to have the game work really well on my older machine, and then, when I try to show it to a friend on their newer machine, find that it seems much more sluggish when the sound causes the game to sort of jerk in the midst of action.... |
|