Jump to content
  • Advertisement
Sign in to follow this  
SuperVince

OpenAl and OggVorbis files

This topic is 4967 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everybody I have a problem with playing ogg files with openal, i can play the sound but when i put it in the game the fps are divide by two. When i played the same files in wave the fps are really better, if somebody can help me it will be good. Thanks

Share this post


Link to post
Share on other sites
Advertisement
FPS isn't really a good way to measure the efficiency of code changes.

Is it a drop from ~800 to 400, or from 60 to 30?

Use the time it took to render a frame as measurement instead.

800 to 400 drop:
frame time: 0,00125 ms ( 800 fps )
frame time: 0,0025 ms ( 400 fps )
- Difference: 1.25 ms

60 to 30 drop:
frame time: ~0,0166666666666667 ms ( 60 fps )
frame time: ~0,0333333333333333 ms ( 30 fps )
- Difference: 16.66667 ms

Catch my drift?

Share this post


Link to post
Share on other sites
it's a drop from 60 to 30. Is there another method for playing ogg vorbis sound, because now i create a new thread and I played it. But we need to decompressed the sound before playing and this take time.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!