It's far from the best method, but if you don't care about being exact, you can update a counter of how many frames have gone by in the current second. When the counter hits 60, just loop until the value returned by time(NULL) has changed.
That should slow things down plenty syscall and all.
Search found 37 matches
- Mon Mar 01, 2010 10:34 pm
- Forum: NESemdev
- Topic: frame limiter - need suggestions
- Replies: 11
- Views: 10655
- Fri Feb 26, 2010 8:21 pm
- Forum: NESdev
- Topic: Final release details for my game
- Replies: 72
- Views: 19351
Version 1.000 arrived today. Incredibly frustrating, but fun. It will probably take me a long time to beat. :oops: Thanks, Sivak! Ditto. I've taken to playing on easy mode, mainly because most of the difficulty (for me, so far, anyway) seems to be navigational hazards rather than enemies that *need...
- Mon Jan 18, 2010 9:55 pm
- Forum: NESdev
- Topic: "Super Mario Bros." simultaneous two player mode p
- Replies: 19
- Views: 9977
- Mon Jun 22, 2009 4:42 pm
- Forum: General Stuff
- Topic: Platforms that require pure Java
- Replies: 4
- Views: 3085
There's also various operating systems ( JavaOS in particular) and various processors ( picojava for one) that use Java for either the base of the operating system or as the basic instruction set architecture of the processor. In the last few years, Java has become a lot faster. I don't know when yo...
- Mon Jun 15, 2009 8:45 am
- Forum: General Stuff
- Topic: Anything reasonably new in emulation ?
- Replies: 16
- Views: 7722
I think I have that. It let's you pick the rom using the file chooser, configure video and (which doesn't seem to function) controllers, and then hit Execute to get that same plain window with no functionality to it (besides the game itself with whatever controls it decided to use). I admit I have n...
- Sun Jun 14, 2009 10:46 pm
- Forum: General Stuff
- Topic: Anything reasonably new in emulation ?
- Replies: 16
- Views: 7722
- Fri Jun 12, 2009 12:38 pm
- Forum: nesdevWiki
- Topic: Wiki content (almost) tranfered
- Replies: 26
- Views: 21522