| We hope you enjoy your visit. You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you are already a member please log in to your account to access all of our features: |
| Frame rates | |
|---|---|
| Tweet Topic Started: May 18 2009, 03:55 PM (932 Views) | |
| giroman | May 18 2009, 03:55 PM Post #1 |
|
Member
![]() ![]() ![]() ![]()
|
I have a basic level done (an outdoor level) Depending where the camera is looking (or how many poly are being drawn) the frame rate varies in different parts of the level. This is no good. Is there a way I can limit / balance the frame rate at a constant speed, without having to use complex calculations for my speed & animations commands. |
![]() |
|
| Sothh | May 18 2009, 04:47 PM Post #2 |
|
Shaman Of Time
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Um, the first thing is to make all the models a different mesh, so that culling works. I don't know the exact coding, or if this would even work. But I think you can do this: n_speed = fps - 60 r_speed = n_speed * -1 room_speed = room_speed + r_speed. Someone correct me if I am wrong. |
|
“You can’t outrun Death forever. But you can make the Bastard work for it.” Major Korgo Korgar “Last of The Lancers” - AFC 32 (Andromeda Ascendant Record Database) | |
![]() |
|
| Reikyrr | May 18 2009, 05:46 PM Post #3 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Can't you just do room_speed = room_speed+(fps-60)*-1 ? if that code works. You could also just fix the room speed at sixty/thirthy/twentyfour and then make it so that it doesnt go below that. Edited by Reikyrr, May 18 2009, 05:47 PM.
|
|
~Inspirational quote~ | |
![]() |
|
| Sothh | May 18 2009, 06:00 PM Post #4 |
|
Shaman Of Time
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
@roelor, yea I guess, I just did it that way so it was easer to under stand. |
|
“You can’t outrun Death forever. But you can make the Bastard work for it.” Major Korgo Korgar “Last of The Lancers” - AFC 32 (Andromeda Ascendant Record Database) | |
![]() |
|
| Reikyrr | May 18 2009, 10:41 PM Post #5 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Well, It isnt really easyer to understand, I think its even harder to read back and watch what every argument means. |
|
~Inspirational quote~ | |
![]() |
|
| skarik | May 19 2009, 01:24 AM Post #6 |
|
kitten eating scum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
OHEMGEE NOOBS Why the hell would room_speed do anything? If you're FPS is at 54, and your room speed is set to 60, do you really think setting your room speed to 120 would help at all? The frame rate is limited by the actions you use, not by the room_speed. Really guys? Holy $h1t. It was inevitable this would happen, I know. Hell, if this was D3D, I'd suggest frame skipping, but that doesn't help at all with U3D. Edited by skarik, May 19 2009, 01:25 AM.
|
| Blog|EHS | |
![]() |
|
| zeo | May 19 2009, 07:36 AM Post #7 |
|
I like turtles.
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I was actually about to say same thing as Skarik, the thing OP is thinking about it kinda like the time_factor variable found in u3d techdemos, it insures the demo events run at same speed no matter what fps the game is running at. (etc, camera movement speed, particles etc etc) (Quite simple, however very powerfull) (Taken directly out of the techdemo, so this is dr. bests code)
(I can't remember what this is called, meta time?) (Have anyone else noticed that when dr. bests scripts in gml it looks a hell of a lot like cpp?) Edited by zeo, May 19 2009, 07:37 AM.
|
|
49 46 20 59 4F 55 20 43 41 4E 20 52 45 41 44 20 54 48 49 53 20 59 4F 55 20 52 45 41 4C 4C 59 20 4E 45 45 44 20 54 4F 20 47 45 54 20 4C 41 49 44 3A 29 recur-recur-recur-recur-recursion-sion-sion-sion-STACK OVERFLOW | |
![]() |
|
| Reikyrr | May 19 2009, 08:15 AM Post #8 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
*wistles* I didn't even look what the code did
|
|
~Inspirational quote~ | |
![]() |
|
| Sothh | May 19 2009, 03:30 PM Post #9 |
|
Shaman Of Time
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I did not say it would work, it was just an idea I had. I though if the frames rates dropped to 30 and you set the room speed to 120 if would make ever thing go twice as fast, so even though you get half frame rates you still move at the same speed. But wtf, it was just an idea. |
|
“You can’t outrun Death forever. But you can make the Bastard work for it.” Major Korgo Korgar “Last of The Lancers” - AFC 32 (Andromeda Ascendant Record Database) | |
![]() |
|
| skarik | May 19 2009, 04:12 PM Post #10 |
|
kitten eating scum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
No. If your frame rates drop to 30 and your room speed is still 60, changing room speed to 120 is not going to double the FPS. @Zeo Delta time. It's always a good idea to use that. I made my own DLL to prevent any loss of time while calculating it - I take a weighted average of the last 300 steps, you see - and it works nicely. It keeps games and sound in sync too. Just remember noobs: Room speed doesn't affect the FPS in any way except in limiting it. |
| Blog|EHS | |
![]() |
|
| Sothh | May 19 2009, 04:24 PM Post #11 |
|
Shaman Of Time
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I know that. But doubling the room speed would make you move twice as fast, so you move at the same rate even though you have low fps. |
|
“You can’t outrun Death forever. But you can make the Bastard work for it.” Major Korgo Korgar “Last of The Lancers” - AFC 32 (Andromeda Ascendant Record Database) | |
![]() |
|
| zeo | May 19 2009, 04:40 PM Post #12 |
|
I like turtles.
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I doubt that'll work. GM executes code at same speed as your frame rate, aka doubling fps when your fps is low is impossible. Setting room_speed higher would not work in any way. *Memorises 'Delta Time'* Thanks for the right term Skarik,
|
|
49 46 20 59 4F 55 20 43 41 4E 20 52 45 41 44 20 54 48 49 53 20 59 4F 55 20 52 45 41 4C 4C 59 20 4E 45 45 44 20 54 4F 20 47 45 54 20 4C 41 49 44 3A 29 recur-recur-recur-recur-recursion-sion-sion-sion-STACK OVERFLOW | |
![]() |
|
| Sothh | May 19 2009, 04:51 PM Post #13 |
|
Shaman Of Time
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
AHHH, That exactly what your doing with "Delta Time" (kind of). Lets say your moving forward at 5 units a step. If you double your room speed your doubling your steps, so after doubling your room speed it would be the same as moving 10 units a step. Since your fps is half, it takes twice as long for each step to happen, so if you double your room speed each step happens twice as fast and you move at the same speed. Plus I just tried it, and maybe its just me, but my game ran way smoother. |
|
“You can’t outrun Death forever. But you can make the Bastard work for it.” Major Korgo Korgar “Last of The Lancers” - AFC 32 (Andromeda Ascendant Record Database) | |
![]() |
|
| Kite | May 19 2009, 05:04 PM Post #14 |
![]()
Legend
![]() ![]() ![]() ![]() ![]()
|
Ooooooh Noooooo!!! I am one of the nooOOooobs!!! |
|
Kite's Wars ----®---- The Revolution begins this December. Edit: Ah I am late.... | |
![]() |
|
| Sothh | May 19 2009, 05:15 PM Post #15 |
|
Shaman Of Time
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
@Jay Possible, saying stuff like that is not going to make us respect you. That just shows what you are, a sad little man with nothing better to do then run around saying: "Oh no, I am a noob." how sad... @every one else, I am not saying this works, or could have worked, or any thing. I am just saying this was my idea, maybe it was wrong, but I though it might work so I posted. Maybe I am just screwed, but I still don't see why it would not do what I said it should do, double the speed of every thing when the frame rate drops to keep the game running smooth. |
|
“You can’t outrun Death forever. But you can make the Bastard work for it.” Major Korgo Korgar “Last of The Lancers” - AFC 32 (Andromeda Ascendant Record Database) | |
![]() |
|
| Go to Next Page | |
| « Previous Topic · Questions about Ultimate 3D · Next Topic » |





![]](http://z1.ifrm.com/static/1/pip_r.png)




10:18 AM Jul 11