hi guys me again
im currently writing an algorithm to control timing and frame rate
i have a method which initializes the time which works fine then i have a method which gets the current time i i have an uninitialized __int64 called tune then i call queryperformancecounter() from win.h then in my return statement i cast time as a double and divide that by a global variable time frequency which is set to 600 (not sure about this variables value) which is then subtracted from another gloabal variable called time begin which is set to 0 to start with then in another method which loops all the time the program is running i first of set a double to = the result of CurrentTime() then say if that is greater than a variable call another method this loop should always be true but it isn't
any ideas?
im currently writing an algorithm to control timing and frame rate
i have a method which initializes the time which works fine then i have a method which gets the current time i i have an uninitialized __int64 called tune then i call queryperformancecounter() from win.h then in my return statement i cast time as a double and divide that by a global variable time frequency which is set to 600 (not sure about this variables value) which is then subtracted from another gloabal variable called time begin which is set to 0 to start with then in another method which loops all the time the program is running i first of set a double to = the result of CurrentTime() then say if that is greater than a variable call another method this loop should always be true but it isn't
any ideas?