• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 497 498 499 500 501 ... 1189 Next »

Hard Disk "spins down" while using dolphin, causing lag
View New Posts | View Today's Posts

Pages (2): 1 2 Next »
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Hard Disk "spins down" while using dolphin, causing lag
01-30-2015, 08:29 PM
#1
Master_T
Unregistered
 
Hi all, first post here, hope I don't mess it up Tongue

I've used dolphin in the past and I have it all configured and set up properly, and it works as expected, no "emulation" problems to speak of.

BUT, I have a related issue that is annoying. Basically it is this: I have my ISOs on a secondary hard disk drive (not the system one where my OS is, since that is a fast but small SSD disk). The problem is that when running games from it, dolphin doesn't "keep the drive spinning" constantly, instead it accesses it only when the game needs new data. This results in frequent instances during gameplay where the disk idles and windows stops it from spinning altogether. Then when dolphin needs new data the disk needs to "spin up" again, causing noticeable stutter (1-3 seconds where dolphin freezes completely, until it has read the new data).

Now I know I can just fully disable disk idling from windows, but that would be a bit excessive, since I don't want my disk always spinning even when no application is using it. So my question is: is there a way to prevent the disk from idling only while dolphin is running a game from it??

Hope my question wasn't too confusing... thanks in advance for any tips!
Reply
01-30-2015, 08:52 PM
#2
Fiora Offline
x86 JIT Princess
**********
Developers (Some Administrators and Super Moderators)
Posts: 237
Threads: 0
Joined: Aug 2014
This kind of thing might be a little trickier than expected since merely reading from the ISO isn't enough to stop it from going idle; if the read gets cached and doesn't actually hit the disk, it doesn't count as a read, as far as I know.

I run into this a whole lot with my music library, since I keep it on my secondary drive and if I skip to a song that's not in the disk cache, it lags for about 5 seconds before starting.
Website Find
Reply
01-30-2015, 11:30 PM
#3
mbc07 Offline
Wiki Caretaker
*******
Content Creators (Moderators)
Posts: 3,562
Threads: 47
Joined: Dec 2010
A very simple .bat script may do the trick. Try this (paste in notepad and save as .bat):
Code:
@echo off
:start
echo tmp > tmp
del tmp
ping 127.0.0.1 -n 60 > nul
goto start

Put this .bat inside the hard disk that spins down and run it, then minimize the command prompt and run Dolphin. This script creates a file, delete it, wait for 5 seconds and do everything again, preventing the hard drive from spinning down...
Avell A70 MOB: Core i7-11800H, GeForce RTX 3060, 16 GB DDR4-3200, Windows 11 (Insider Preview)
ASRock Z97M OC Formula: Pentium G3258, GeForce GT 440, 16 GB DDR3-1600, Windows 10 (22H2)
Find
Reply
01-31-2015, 01:12 AM
#4
doohan Offline
Junior Member
**
Posts: 49
Threads: 14
Joined: Jan 2015
Hi Master_T

Try to run a game on another HDD and see if it happens too.

See my post. Think it's same problem :-)

https://forums.dolphin-emu.org/Thread-lag-in-games-solved
Find
Reply
01-31-2015, 03:45 AM
#5
Master_T
Unregistered
 
@Jhonn: Yeah, I'm using something similar at the moment, that I've written in C#. I was just wondering if there was a way in dolphin to do it automatically.

@doohan: I know it is the HDD, I can hear it spinning up when the stutter occours Wink I only have that one tho, and an SSD which is too small to store wii games on.

I think I'll write a loader that opens dolphin and runs a background loop that does dummy writes as long as dolphin is opened. Might share it later if anyone's interested.
Reply
01-31-2015, 04:09 AM
#6
KHg8m3r Offline
Doesn't sleep, just Dolphin and Robots
*******
Posts: 5,914
Threads: 4
Joined: Sep 2013
What happens if you put dolphin and its files on the HDD and play from there?
Find
Reply
01-31-2015, 04:26 AM
#7
haddockd Offline
Dolphin Addict
*****
Posts: 838
Threads: 31
Joined: Jun 2011
I always buy Western Digital Black. They are designed to be "always ready". They cost a little more but I have never had an issue with Dolphin and having my games on a secondary HDD
i5-8600K @ 4.5 GHz
GeForce GTX 1080 SC2
ASRock Z370 Taichi LGA 1151
CORSAIR Vengeance LPX 16GB 2400 DDR4
SAMSUNG 970 EVO M.2 500GB PCIe SSD
Indigo Xtreme TIM
Phanteks Pro ES614P Black Steel Case
EVGA SuperNOVA 750W PSU
Windows 10 64-bit
Find
Reply
01-31-2015, 07:30 AM (This post was last modified: 01-31-2015, 07:52 AM by kirbypuff.)
#8
kirbypuff Offline
The Original White Marshmallow
*****
Posts: 825
Threads: 37
Joined: Aug 2010
Just let it spin.
Disable the power saving features (set Turn off hard disks to "Never" in the Power Options).

Your HDD will last longer (spin up/down cycles are the main reason for HDD failure).

Modern hard drives run cool & quiet and are power-efficient even when they're spinning.
Find
Reply
01-31-2015, 07:36 AM
#9
mimimi Offline
Senior Member
****
Posts: 720
Threads: 1
Joined: May 2014
Or just set it to something reasonable, like 1 hour or more.
Find
Reply
02-02-2015, 04:50 AM
#10
Master_T
Unregistered
 
(01-31-2015, 07:30 AM)kirbypuff Wrote: Just let it spin.
Disable the power saving features (set Turn off hard disks to "Never" in the Power Options).

Your HDD will last longer (spin up/down cycles are the main reason for HDD failure).

Modern hard drives run cool & quiet and are power-efficient even when they're spinning.

That option is already disabled. It's the drive itself that "decides" to spin down very often, I think less than a minute after no requests. I've read that it's a feature of some drives in order to save power (it's a laptop-sized drive, so it makes sense).

For now I'm just using a anti-idling script that writes a few bytes to disk every 30 seconds, seems to work ok.
Reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode