optimization - Android opengles stuttering scrolling -
i've created small simple world 480x320. have implemented smooth scrolling 1 problem keep noticing stutters few times. think have know why it's stuttering fail realize how fix problem. not using delta time in scrolling calculations confuses me more. how delta value supposed used? getting value .2something delta time. have set fps limit 30fps (33 exact) , frame rate has never gone below 30 in tests. solution scrolling increasing xpos value tile_size (32) , comparing camera.x value xpos , increasing or decreasing camera.x amount (4). i'm not sure how use delta in example. have tried: speed * deltatime = not right; speed * (1 + deltatime) = not right; speed +/- deltatime = more stuttering;
am correct in thinking not using delta time causing stuttering , if can me? or different matter altogether?
you should use fixed time step approach, ensure more consistent results.
if haven't read quite famous, "fix timestep!" article, recommend so.
cheers!
Comments
Post a Comment