Vsync / Framelimit ?

Home Forums Tao Classic Community Problems and support requests Vsync / Framelimit ?

This topic contains 1 reply, has 2 voices, and was last updated by  fafase 3 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #62


    We are using TaoClassic with .net 4.5 in a school project, and currently our engine is running around 6000fps.
    We had a debate about the limit, with our teacher saying that I should come here to ask for the proper way.

    I personally did it with a simple timer, calling all the drawing and openGLcontrol.Refresh() every 16.666ms in our main loop to get 60fps, but this was refused.
    The other way I know is to use openGL Swap Interval, but afaik, this is platform specific extension.
    We could also limit the windows form we run the program in to 60 loops / second as well.

    Our teacher said there is some simple command we can use, but I have no idea what.

    What would be the ‘proper’ way to do it with Tao Classic ?




    It seems a way would be to create a method that count how long has elapsed since the starting of the frame and use that value to figure out how long should be waited until next frame.
    Then that value could be passed to

    To be tried.
    other way would be to use:


    The simple timer still runs and occupies the CPU.

    I was expecting the OpenGLControl object to have something related but could not find anything.

    The forementioned teacher

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Posted in