Post Reply 
 
Thread Rating:
  • 7 Votes - 2.14 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dolphin SVN 3374 with Framelimiter (32+64bit)
06-07-2009, 08:26 PM (This post was last modified: 06-09-2009 12:53 AM by Iulius.)
Post: #1
Dolphin SVN 3374 with Framelimiter (32+64bit)
edit :
nobody wanted to help, so i did it alone Tongue


download : http://ul.to/1z88m3 at uploaded.to
(includes .patch with source code changes)

version with 32bit + JITIL : http://ul.to/d2uobk


another mirror with 32bit + JITIL + 64Bit + sourcecode :
http://www.zshare.net/download/61105476a996db47/



hope you like it Smile
Find all posts by this user
Quote this message in a reply
06-07-2009, 08:44 PM
Post: #2
RE: Need help with my framelimiter
That's really cool, does it work in Metroid Prime? (E.g. Limiting frames to 30 instead of 50/60, keepinig speed at full)

Specs: Core2Duo E8400 3,0 Ghz;
4Gb RAM; NVIDIA GeForce GTX 260;
WinVista 32-Bit/Win7 64-Bit
Visit this user's website Find all posts by this user
Quote this message in a reply
06-07-2009, 09:41 PM (This post was last modified: 06-07-2009 10:31 PM by Iulius.)
Post: #3
RE: Need help with my framelimiter
i dont know, only got the 4 games i wrote for testing.

but you can compile it yourself to test it.

at the moment its 75% chance that it works Tongue


edit : made a new one.

the old one changes waitingtime only once a second.
The new one uses each new frametime for cpu-suspend.

This produces much more stable FPS + will not cause any slowdown if game runs slower then choosen framelimit.

still, SSBM does not work. other 3 games work very well.


Code:
[b]static u32 targetfps = 30;
    static u64 old_frametime=0;
    u64 new_frametime;
    s16 wait_frametime;[/b]

    frames++;

    [b]new_frametime=Timer.GetTimeDifference()-old_frametime;

    old_frametime=Timer.GetTimeDifference();

    wait_frametime=((1000/targetfps)-new_frametime)-1;
    if (wait_frametime>0)
        Common::SleepCurrentThread(wait_frametime*2);
[/b]
    if (Timer.GetTimeDifference() >= 1000)
    {
        [b]old_frametime=0;[/b]
Find all posts by this user
Quote this message in a reply
06-08-2009, 12:25 AM
Post: #4
RE: Need help with my framelimiter
looks great, good job

Thanks for unbanning me ector! Smile
Find all posts by this user
Quote this message in a reply
06-08-2009, 02:15 AM (This post was last modified: 06-08-2009 02:18 AM by Iulius.)
Post: #5
RE: Need help with my framelimiter
included it into main config window.

Few screens attached.

to compare : with "other audio on" its 18fps with 100% cpu use Smile


           


still need help with the thread management.

it seems "CurrentThread" isn't enough for every game. but i have no idea which threads are running and how i can make them go to sleep.
Find all posts by this user
Quote this message in a reply
06-08-2009, 02:39 AM (This post was last modified: 06-08-2009 02:44 AM by Palito.)
Post: #6
RE: Need help with my framelimiter
can you compile the lastest version of dolphin, with that plz?
To test, if my games work too =p
and this is one great think that MUST be implemented in googlecode, to the official dolphin project =p

[Image: slide0002_image011.gif]
CPU: Intel Q6600 @ 3 Ghz (it's more than enough)
RAM: 3 GB DDR2
GPU: Nvidia 8600 GT
HD: 750 GB (500+250)
Find all posts by this user
Quote this message in a reply
06-08-2009, 03:38 AM
Post: #7
RE: Need help with my framelimiter
i created a patch that can be used to compile yourself :

http://rapidshare.com/files/241944421/fr...patch.html


maybe i can provide compiled version later, if needed.
Find all posts by this user
Quote this message in a reply
06-08-2009, 05:06 AM
Post: #8
RE: Need help with my framelimiter
i don't know how to compile this, but isn't there a way to compile only the file tan contains this frame limit think, and than replace the file in normal dolphin?

[Image: slide0002_image011.gif]
CPU: Intel Q6600 @ 3 Ghz (it's more than enough)
RAM: 3 GB DDR2
GPU: Nvidia 8600 GT
HD: 750 GB (500+250)
Find all posts by this user
Quote this message in a reply
06-08-2009, 05:27 AM
Post: #9
RE: Need help with my framelimiter
it would be possible for the same rev of dolphin, but as this changes 20 times a day, it would not make sense to do that.

i'll upload a compiled version of newest svn + framelimit tomorrow.
Find all posts by this user
Quote this message in a reply
06-08-2009, 08:03 PM (This post was last modified: 06-08-2009 10:31 PM by Iulius.)
Post: #10
RE: Need help with my framelimiter
edit : got it Big Grin

problem was the dualcore watchdog which was only checking every 4th frame at 60fps.

this means 3 frames were still running too fast resulting in too fast gameplay.


i updated it to check every frame @ 60fps and now SSBM also works Smile

compiled file and sourcecode in first post.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: