I made a game, and when it starts, there is a title menu with a lot of stuff going on. I'm using an if (_kbhit()) inside a loop, while audio is being played through openal and, also, I have a sort of complex, I guess animation going on with the text. I'm using printf(\r), printf(\b), and VSetConsoleCursorPosition do the text animation. I am also using clock() to get and check time, and differences, to do this on timed intervals, and to make changes to audio take effect immediately, I am checking the value of my _getch() many times in between. It takes a lot of CPU.
On my computer its fine, but on the schools computers, the sound plays, but the text animation doesn't work, and the program doesn't take input.
I can't figure out why this isn't working.
My computer is windows 7, and the school computer is xp. The cpu load, on the non functioning part of my program is 50% on the xp computer.
Can anyone think of why this might not work? Do you think it has to do with performance?
The fact that the cpu load is 50%, makes me think that my program is looping. The sound is playing.
But, _getch() is not taking an input ,and the text animation is not printing.