- Forums
- Forum Help
- Search Forum
- Login
- Register
Truevision3D
>>
TV3D SDK
>>
TV3D SDK 6.5
>>
how can I restrict the fps?
Pages: [
1
]
« previous
next »
Print
Author
Topic: how can I restrict the fps? (Read 196 times)
kTecH
Customers
Community Member
Posts: 85
how can I restrict the fps?
«
on:
September 13, 2008, 05:21:49 PM »
Hi folks!
I want to restrict the frames per second to max 40 (no matter how fast my machin is)
Anyway it can run slower but never faster - how can I do that?
best regards
Sim
Logged
RuntimeError101
Customers
Community Member
Posts: 184
Re: how can I restrict the fps?
«
Reply #1 on:
September 13, 2008, 05:27:16 PM »
You can use VSync to max the fps out at 60.
Logged
jviper
Community Member
Posts: 1365
Discipline in training
Re: how can I restrict the fps?
«
Reply #2 on:
September 13, 2008, 06:22:59 PM »
Better: Use TVEngine.EllapsedTime. Declare a variable counter that is a float. Each Loop increment that variable by TVEngine.EllapsedTime*0.001. When that variable gets to 1/40, render the scene, then reset the counter.
Alternatively you can create a timer event for it. Declare System.Timer object, set the interval (delay between frames so you pass (1/40) * 1000 to it for 40FPS), then write your Render Sub to handle the tick event.
«
Last Edit: September 13, 2008, 06:44:21 PM by jviper
»
Logged
JAbstract.....Don't just imagine, make it happen!
kTecH
Customers
Community Member
Posts: 85
Re: how can I restrict the fps?
«
Reply #3 on:
September 14, 2008, 03:04:13 AM »
@RuntimeError101 -> I need 40 frames;) and not every Monitor has ony 60 (some of them has 75 and so on)
jviper -> will chetck this out
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Truevision3D Official Information
-----------------------------
=> News and Announcements
=> Development Information
-----------------------------
TV3D SDK
-----------------------------
=> TV3D SDK 6.3
===> Bugs
=> TV3D SDK 6.5
===> Bugs
===> Content Pipeline
===> Shader Development
-----------------------------
Projects
-----------------------------
=> Announcements
=> In-Development
=> Showcase
=> Recruitment
-----------------------------
Game Development
-----------------------------
=> Engine Comparison
=> Game Development
=> Companion Tools
=> Design and Theory
Powered by SMF 1.1.3
|
SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks