Smooth Scrolling ?

1) First of all I use Microsoft.DirectX.Direct3D.Font.DrawText(....) for creting 2d text and change x-y parametrers for scrolling

2) I can calculate framerate as below :

++frames;

int ticks = Environment.TickCount;

int elapsed = ticks - lastTickCount;

if (elapsed > 1000)

{

int framerate = frames;

frames = 0;

this.FPS = framerate ;

lastTickCount = ticks;

}

But how can i use them together and get a SMOOTH scroll Or am i on the wrong way



Answer this question

Smooth Scrolling ?

  • GLS_1985

    Take a look at this tutorial/sample code on mdxinfo.com. We at MDXInfo provide alot of samples, tutorials and code snippits that cover some of the basic and even hard to understand topics. The sample that I linked is a sample on how to implement time based movmement.


  • Smooth Scrolling ?