Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Dears
I have a problem in time span in C#
I want to simulate ball motion .i have some equation that needs to recalculating in every microsecond and I want to display result 60 FPS.
Please help me...
Posted
Updated 22-Feb-13 2:03am
v2

1 solution

I've not used XNA too much but you have two events an Update and a Refresh. From what you're saying you want to update your model more frequently but still draw at 60FPS. I found this article:

http://geekswithblogs.net/Sharpoverride/archive/2009/08/08/xna-tip-changing-the-frequency-for-the-update-and-draw.aspx[^]

which covers this issue. I don't know if you can get update at the frequency you need without sacrificing your FPS. You may already know all this but I thought I'd throw it out there.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900