Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
WarWolf
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 7th Feb 2003 21:17
My function for full duplication doesn't seem to work. I think I saw a similar one somewhere on the forum called gameSpeed(), but I can't find it... Would that person be an angel and give it me? *smiles and looks really innocent*
I didn't steal it!
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 7th Feb 2003 21:40
Full duplication ? In what way ?

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
WarWolf
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 7th Feb 2003 23:17
Oh, you know when you modify values after the framerate. For example, if you get 50 fps on your computer, and your friend gets 100 fps, then all values (moving etc) should be divided by two, right? This is called full duplication.

I didn't steal it!
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 7th Feb 2003 23:53
I call it frame rate limiting...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
WarWolf
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 8th Feb 2003 00:38
No, it's not supposed to limit the framerate. It is supposed to change the step values in the program after the framrate, so that it runs at the same speed no matter what framerate you have

I didn't steal it!
WarWolf
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 8th Feb 2003 00:39
Anyway, whose code was it?

I didn't steal it!
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 8th Feb 2003 01:09
No idea.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 8th Feb 2003 01:48
I wrote a similar piece of code in the "2d sprite bug rich" thing that has a method of keeping the speed the same on all machines Other ppl do it different ways tho, search and you shall find

Coming Soon! Kangaroo2 Studio... wait and quiver with anticipation! lol
[email protected] - http://www.kangaroo2.com - If the apocalypse comes, email me
WarWolf
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 8th Feb 2003 01:53
I know, the thing is that I've been looking all over allready. I've done my own ofcourse, but I am sure I saw a snip somewhere with a function called gameSpeed(), which was written in a better way than mine. I am in a desperate need of that function right now.

I didn't steal it!
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 8th Feb 2003 02:39
An old short article of mine : [url]http::/www.matrix1.demon.co.uk/DBPro/WhatFrameRate.html[/url]

It's a bit short, but should give you the general idea.
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 8th Feb 2003 15:08
Yes IanMs way is more efficient than mine, Raven uses a better code than me too I just like my way as I can also use it to adjust the animation speed of different objects at the same time, in a simple way I can understand

Coming Soon! Kangaroo2 Studio... wait and quiver with anticipation! lol
[email protected] - http://www.kangaroo2.com - If the apocalypse comes, email me
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 8th Feb 2003 16:13
what i use isn't my code ... saw it in TMC's code and thought it was interesting - just evolved it slightly, setting up the values within array's seemed a logical step to make sure i could have multiple instances.



not really anything fancy ... and i'm kinda tired so i'm not sure if thats setup right hehee
can have upto 255 instances of a pipeline timer for all sorts of operations, from frame rate limitation to checking networking ping.

now that should if i've remember'd it right, check to make sure the loop time < 0.01sec but is > 0.02sec

as normally regardless of the FPS it should refreshing at the same speed as your bus, so it'll compound the loop time until it is between that result.
Obviously means you can't have everything timed perfectly, however still will give realistic enough results not to matter

using a timer is different to using the FPS because the FPS is how many times the graphics card has processed the 3D scene, whereas your timer should be a constant for your system (or atleast processor laden based)

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 8th Feb 2003 16:14
lmao there is an obvious flaw in that from just lookin at it, i shouldn't code when i'm tired - but i'm sure you can catch it

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 8th Feb 2003 19:33
Give it a rest mate.
Kale
22
Years of Service
User Offline
Joined: 8th Sep 2002
Location: United Kingdom
Posted: 8th Feb 2003 21:03
or you can use this:

http://www.garyw.uklinux.net/DB/optimisations.txt

What the flame does not consume, consumes the flame.
------------------------------------------------------------------------
AMD XP2100+, Geforce4Ti 4400, 512Mb DDR, Abit KX7, WinXP Home
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 8th Feb 2003 23:34
hey thats a cool one too
hehee well there we go wolf, 3 seperate ways to do this (^_^)

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
WarWolf
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 9th Feb 2003 00:03
Well, I know how to do it, but I saw someone who had a better version of it, better optimised, and I can't remember how it was done. Well, whatever, maybe it was somewhere else...

I didn't steal it!

Login to post a reply

Server time is: 2025-05-19 07:33:42
Your offset time is: 2025-05-19 07:33:42