why decoding ogg data is so heavy processing?
I use ogglib to decode ogg music data and get the PCM data from it then fill a small buffer with the decoded data, the problem is that I need to continuosly decode ogg data while game is playing (I''m using another thread for decoding). this decoding process affects the game smoothness terribly. I tried using ''setthreadpriority'' with BELOW_NORMAL parameter and it is a little better with the problem of playing buffer portions which has not been ready to be played.
what can I do?
I don''t think it would much more CPU intensive to decode than MP3z are, so there shouldn''t really be a problem getting it working, I know that Unreal Tournament and Unreal 2 manage using ogg for music just fine. Is the file loaded into memory at load time rather than constantly fetching from disk? Are you building the lib yourself? If so check that optimizations are on. Apart from that all I can think of is try a different library. I haven''t used ogglib so I can''t comment on how efficient it is.
"Voilà! In view, a humble vaudevillian veteran, cast vicariously as both victim and villain by the vicissitudes of Fate. This visage, no mere veneer of vanity, is a vestige of the vox populi, now vacant, vanished. However, this valorous visitation of a bygone vexation stands vivified, and has vowed to vanquish these venal and virulent vermin vanguarding vice and vouchsafing the violently vicious and voracious violation of volition. The only verdict is vengeance; a vendetta held as a votive, not in vain, for the value and veracity of such shall one day vindicate the vigilant and the virtuous. Verily, this vichyssoise of verbiage veers most verbose, so let me simply add that it's my very good honor to meet you and you may call me V.".....V
the whole data is loade into memory, I''m using ogglib ... I may check fmod but I noticed that while playing ogg music in winamp it also affects my game performance, I''m worried if there is a trick to solve this?
note that in P4 2.4 it is ok but the problem is in PII 500
note that in P4 2.4 it is ok but the problem is in PII 500
The P2''s instruction set (especialy SIMD) is less than that of the P4 - therein could lie your problem. Do you get the same problem on a P3? on an AMD? How about with an MP3 in winamp.
Of course, it''s not a good idea to use MP3 for your final thing (licencing and quality issues).
Free Game: Yet Another Falling Block Game
Of course, it''s not a good idea to use MP3 for your final thing (licencing and quality issues).
Free Game: Yet Another Falling Block Game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement