Jump to content
  • Advertisement
Sign in to follow this  
wanzi215

Question about game replay(combat replay)

This topic is 1670 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am working on game replay 2 weeks,but there are some questions trouble me here.

 

this function just like combat replay of COC.

 

I use cocos2d-x engine,in order to keep game performance on different device,engine use dt(time interval between 2 frames) to adjust animations,actions, move,jump,etc.

 

The trouble is that dt is so different on different device,it's big on slow device and small on quick device,for example,I check collide of someobject when it's moving, in a key time,the x position of object is 1.05 on slow device,the collide occured,but at this moment,the x position of object is 1.04 on quick device,the collide not occur,the logic is different on different device at same moment.the replay is incorrect.

 

If I not use dt, replace it to frame or I kept the dt in a const value(like 0.5),the replay is ok,but the performance is suck,game is running not smooth on slow device,so,this is not a good idea.

 

any suggestion or idea?

 

thanks very much for your help!!

Share this post


Link to post
Share on other sites
Advertisement

This topic is 1670 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!