Views: 1,270,913 Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search 12-02-20 11:04 AM
Guest:

0 users reading Framerate dropping while recording | 1 bot

Main - General - Framerate dropping while recording New reply


validopinionhaver
Posted on 10-24-20 02:54 PM Link | #2616
Hi!

Recently I have been trying to record gameplay, but every time I hit record, the framerate noticeably drops, and I'm wondering if there's a fix for this.

For reference, I am recording using OBS and I'm playing Pokemon Black.

Arisotura
Posted on 10-24-20 02:55 PM Link | #2617
moving this to a more fitting forum.

anyway, recorders might use more CPU than your computer can spare when running melonDS, resulting in a framerate drop.

____________________
Kuribo64

PoroCYon
Posted on 10-24-20 02:56 PM Link | #2618
that or, if you're lucky, it's only your OS scheduler messing things up. you could try upping the priority of the melonDS process, and try switching to a less CPU-intensive encoder on the OBS side

____________________
TiTAN Forever

Sorer
Posted on 10-24-20 04:07 PM Link | #2619
There is an issue if MelonDS is not focused then it will cause frame drops.
Maybe how OBS interacts with it is similar.

Arisotura
Posted on 10-24-20 04:25 PM Link | #2620
Posted by Sorer
There is an issue if MelonDS is not focused then it will cause frame drops.

I'd be interested to know the specifics behind this if it's true, because it doesn't make much sense to me...

____________________
Kuribo64

Generic aka RSDuck
Posted on 10-24-20 04:27 PM (rev. 2 of 10-24-20 04:28 PM) Link | #2621
Posted by Arisotura
I'd be interested to know the specifics behind this if it's true, because it doesn't make much sense to me...

it's just that the Windows scheduler gives defocused graphical applications less cpu time, because if you don't focus them, you probably aren't interested in seeing what's happening in them at fullspeed.

____________________
Take me to your heart / never let me go!

"clearly you need to mow more lawns and buy a better pc" - Hydr8gon

PoroCYon
Posted on 10-24-20 04:29 PM Link | #2622
Posted by Generic aka RSDuck
it's just that the Windows scheduler gives defocused graphical applications less cpu time, because if you don't focus them, you probably aren't interested in seeing what's happening in them at fullspeed.


either that, or the "window idle" event firing less often for the same reason (if that's being used to run a main loop iteration, but I'm not sure about the latter)

____________________
TiTAN Forever

Generic aka RSDuck
Posted on 10-24-20 04:40 PM Link | #2623
Posted by PoroCYon
either that, or the "window idle" event firing less often for the same reason (if that's being used to run a main loop iteration, but I'm not sure about the latter)

the emulation happens from it's own thread which should be independent from the drawing events

I worked on a networked graphical application before, so to test it I needed to run two instances at once. There was a bug which puzzled me for a long time: the interpolation of the received state was super stuttery. Then I figured out that the defocused application was running at a very low framerate, which explained everything. Of course in this case it's mostly about GPU scheduling (idk how much is done by Windows and how much is done by the drivers here) which is different.

Another thing I noticed is that the Windows scheduler seems to give two visible instances of melonDS next to each (so one has to be defocused) equal CPU time (idk how smart it is exactly, maybe it even factor in whether a window is visible or not).

____________________
Take me to your heart / never let me go!

"clearly you need to mow more lawns and buy a better pc" - Hydr8gon


Main - General - Framerate dropping while recording New reply

Page rendered in 0.020 seconds. (2048KB of memory used)
MySQL - queries: 29, rows: 92/92, time: 0.015 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.