Reply to thread
GBAtemp.net - The Independent Video Game Community
Search
Search titles only
By:
Search titles only
By:
Reply to thread
GBAtemp.net - The Independent Video Game Community
Home
Log in
Terms & Rules
Donate
Forums
New posts
Search forums
Groups
Public Events
New
New posts
New resources
New blog entries
New profile posts
New blog entry comments
New threadmarks
Latest activity
Cheats
Cheat Codes Add and Request group
The Legend of Zelda: Tears of the Kingdom cheat codes
Pokémon Legends: Arceus cheat codes
Xenoblade Chronicles 3 cheat codes
Fire Emblem Engage cheat codes
Request a cheat...
Tutorials
Nintendo Switch tutorials
Nintendo 3DS tutorials
Nintendo Wii U tutorials
Reviews
Overview
Official reviews
User reviews
Downloads
Latest reviews
Search resources
Blogs
New entries
New comments
Blog list
Search blogs
Chat
Top chatters
Search
Search titles only
By:
Search titles only
By:
Log in
Register
New posts
Search forums
Log in
Register
Home
Forums
Other Systems Discussions
Other Platforms & Oldies
Super Mario 64 PC port has been released!
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Colbydude" data-source="post: 9045917" data-attributes="member: 287811"><p>For anyone on playing around on macOS, here's what I did to accomplish frame limiting to 30 FPS.</p><p></p><p>In [PRE]gfx_sdl2.c[/PRE]:</p><p>[CODE]</p><p>// Add the following towards the top of the file.</p><p>const unsigned int FPS = 30;</p><p>const unsigned int FRAME_TARGET_TIME = 1000 / FPS;</p><p></p><p>int ticksLastFrame = 0;</p><p></p><p>// Update this method to the following:</p><p>static bool gfx_sdl_start_frame(void) {</p><p>// Sleep the execution until we reach the target frame time in ms.</p><p>int timeToWait = FRAME_TARGET_TIME - (SDL_GetTicks() - ticksLastFrame);</p><p></p><p>// Only call delay if we are too fast to process this frame.</p><p>if (timeToWait > 0 && timeToWait < FRAME_TARGET_TIME) {</p><p>SDL_Delay(timeToWait);</p><p>}</p><p></p><p>ticksLastFrame = SDL_GetTicks();</p><p></p><p>return true;</p><p>}</p><p>[/CODE]</p><p>Definitely not the most elegant solution, but it works!</p></blockquote><p></p>
[QUOTE="Colbydude, post: 9045917, member: 287811"] For anyone on playing around on macOS, here's what I did to accomplish frame limiting to 30 FPS. In [PRE]gfx_sdl2.c[/PRE]: [CODE] // Add the following towards the top of the file. const unsigned int FPS = 30; const unsigned int FRAME_TARGET_TIME = 1000 / FPS; int ticksLastFrame = 0; // Update this method to the following: static bool gfx_sdl_start_frame(void) { // Sleep the execution until we reach the target frame time in ms. int timeToWait = FRAME_TARGET_TIME - (SDL_GetTicks() - ticksLastFrame); // Only call delay if we are too fast to process this frame. if (timeToWait > 0 && timeToWait < FRAME_TARGET_TIME) { SDL_Delay(timeToWait); } ticksLastFrame = SDL_GetTicks(); return true; } [/CODE] Definitely not the most elegant solution, but it works! [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
Other Systems Discussions
Other Platforms & Oldies
Super Mario 64 PC port has been released!
General chit-chat
Help
Users
Settings
Notifications
Miscellaneous
Inverse message direction
Display editor on top
Enable maximized mode
Display images as links
Hide bot messages
Hide statuses
Hide chatter list
Show messages from ignored users
Temporarily disable chat
Receive mention alerts
Sound notifications
Normal messages
Private messages
Whisper messages
Mention messages
Bot messages
Desktop notifications
Normal messages
Private messages
Whisper messages
Mention messages
Bot messages
Options
Options
View top chatters
K3Nv2
Loading…
rqkaiju2
Loading…
Sonic Angel Knight
Loading…
@
Xdqwerty
:
@SylverReZ
, tbh stuff like Microsoft Sam sound way more natural that the tik tok tts
+2
Today at 7:16 PM
@
AncientBoi
:
I use TextAloud for tts. And I bought some voices from them,
Today at 7:18 PM
@
Xdqwerty
:
@AncientBoi
, I may pirate it, i heard a lot of youtubers in spanish use it
+2
Today at 7:19 PM
@
Xdqwerty
:
Nvm i didnt "hear", it's a truth
+1
Today at 7:19 PM
@
Xdqwerty
:
https://youtu.be/xhBk5RI7PF4?si=CGdi_ScDbZJTnJi5
Today at 7:26 PM
@
AncientBoi
:
I Love Pianos
Today at 7:28 PM
@
BakerMan
:
i know you love pianists
+3
Today at 7:35 PM
@
SylverReZ
:
@Xdqwerty
,
https://youtu.be/4urnwg_PhMs?feature=shared&t=35
+1
Today at 7:35 PM
@
AncientBoi
:
2 of them
!
+1
Today at 7:38 PM
A
@
Arnauw
:
Hello, anyone knows if Nintendo release update 1.0.1 for Paper Mario The Thousand Year Door?
Today at 7:43 PM
@
Xdqwerty
:
@AncientBoi
, and the 12 inches pianist?
+2
Today at 7:44 PM
@
AncientBoi
:
That's even worse
+2
Today at 7:49 PM
@
SylverReZ
:
*Penist
+2
Today at 7:51 PM
@
AncientBoi
:
+1
Today at 7:51 PM
@
AncientBoi
:
off to make lunch. L8er guys
[ham sammies]
+2
Today at 7:53 PM
@
BakerMan
:
+1
Today at 7:57 PM
@
Xdqwerty
:
yawn
Today at 9:13 PM
@
BigOnYa
:
Fart
Today at 9:48 PM
@
Xdqwerty
:
@BigOnYa
, burp
+1
Today at 9:49 PM
@
SylverReZ
:
https://www.youtube.com/watch?v=a9w_UTPpHjg
Today at 10:18 PM
@
Sonic Angel Knight
:
@SylverReZ
time to bake a cake with baker man
+1
Today at 10:44 PM
@
SylverReZ
:
@Sonic Angel Knight
, Meth cake lol
58 minutes ago
@
Sonic Angel Knight
:
No make a patty cake
+2
26 minutes ago
@
rqkaiju2
:
yeehaw
21 minutes ago
@
K3Nv2
:
Stop trying to make on my cakes
A moment ago
Submit
@
K3Nv2
:
Stop trying to make on my cakes
A moment ago
Chat
3