Print the values for this_frame_tick, last_frame_tick, and time.
Will do and edit results in in a second.
Note that SDL_GetTicks() returns an unsigned integer in milliseconds and you need a proper conversion to float.
I'm just bruteforcing the conversion as such:
[source lang="cpp"]float time = ( float ) uint_time;[/source]
I didn't consider this a problem, whether the time value is 500 as unsigned int or 500.0f as float? Is this were I'm going wrong?
Thanks for the response!