Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › Problem with always run a program in realtime priority
New Posts  All Forums:Forum Nav:

Problem with always run a program in realtime priority - Page 2

post #11 of 15
Quote:
Originally Posted by ihatelolcats View Post

i created a batch file to always run an audio player in realtime priority, however it only elevates to high priority. is there a workaround for this? its a single core laptop and audio will drop if its fully loaded. thanks for input

cmd /c start "xmplay" /REALTIME /B "C:\Program Files\xmplay\xmplay.exe"

    The "cmd /c " part isn't needed.  The code should begin with "start".  However, the rest of the command (as shown above) should start xmplay.exe at realtime priority.  It is possible that xmplay is lowering its priority to high when it sees that it is at realtime.  Also, in my experience, when there are audio glitches, it helps to bump audiodg.exe to realtime priorty instead of the media player software, since the media playback is buffered with a sufficiently long buffer to audiodg, while audiodg is using a very small buffer to the soundcard.  You may have to use Process Hacker to set the priority on audiodg.exe, though.

    I used this command just now on 7-zip, and it was started with realtime priority:
Code:
start "7zFM" /REALTIME /B "C:\Program Files\7-Zip\7zFM.exe"
My desktop PC
(14 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7-3770K Gigabyte P67A-D3-B3 NVIDIA GeForce 8400 GS  1x Corsair 8 GB 
Hard DriveHard DriveHard DriveOS
Kingston SV300S3 WesternDigital WD10EZEX Samsung HD154UI Windows 7 Ultimate SP1 x64 
MonitorMonitorKeyboardPower
Daewoo L947BK Gateway FPD1530 HTK-2001 Dynex DX-400WPS 
MouseAudio
Kensington K72400 Realtek ALC889 
  hide details  
Reply
My desktop PC
(14 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7-3770K Gigabyte P67A-D3-B3 NVIDIA GeForce 8400 GS  1x Corsair 8 GB 
Hard DriveHard DriveHard DriveOS
Kingston SV300S3 WesternDigital WD10EZEX Samsung HD154UI Windows 7 Ultimate SP1 x64 
MonitorMonitorKeyboardPower
Daewoo L947BK Gateway FPD1530 HTK-2001 Dynex DX-400WPS 
MouseAudio
Kensington K72400 Realtek ALC889 
  hide details  
Reply
post #12 of 15
Quote:
Originally Posted by ihatelolcats View Post

again, great advice. but not the question im asking.
the computer plays audio great with no other programs running simultaneously.
i manually set priority and performance is much improved. im trying to avoid using process lasso because that adds overhead. i dont see why my batch file doesnt work right

oh and I never mentioned streaming audio. im playing local files

Your system is vastly CPU constrained if it is stuttering with audio. Steaming as in it's continuous stream of data for processing (regardless of source).
Once again...
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 [4.28GHz, HT] Asus P6T + Broadcom NetXtreme II VisionTek HD5850 [900/1200] + Galaxy GT240 2x4GB G.Skill Ripjaw X [1632 MHz] 
Hard DriveOSMonitorKeyboard
Intel X25-M 160GB + 3xRAID0 500GB 7200.12 Window 7 Pro 64 Acer H243H + Samsung 226BW XARMOR-U9BL  
PowerCaseMouseMouse Pad
Antec Truepower New 750W Li Lian PC-V2100 [10x120mm fans] Logitech G9 X-Trac Pro 
  hide details  
Reply
Once again...
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 [4.28GHz, HT] Asus P6T + Broadcom NetXtreme II VisionTek HD5850 [900/1200] + Galaxy GT240 2x4GB G.Skill Ripjaw X [1632 MHz] 
Hard DriveOSMonitorKeyboard
Intel X25-M 160GB + 3xRAID0 500GB 7200.12 Window 7 Pro 64 Acer H243H + Samsung 226BW XARMOR-U9BL  
PowerCaseMouseMouse Pad
Antec Truepower New 750W Li Lian PC-V2100 [10x120mm fans] Logitech G9 X-Trac Pro 
  hide details  
Reply
post #13 of 15
Thread Starter 
Quote:
Originally Posted by Techie007 View Post

Quote:
Originally Posted by ihatelolcats View Post

i created a batch file to always run an audio player in realtime priority, however it only elevates to high priority. is there a workaround for this? its a single core laptop and audio will drop if its fully loaded. thanks for input

cmd /c start "xmplay" /REALTIME /B "C:\Program Files\xmplay\xmplay.exe"

    The "cmd /c " part isn't needed.  The code should begin with "start".  However, the rest of the command (as shown above) should start xmplay.exe at realtime priority.  It is possible that xmplay is lowering its priority to high when it sees that it is at realtime.  Also, in my experience, when there are audio glitches, it helps to bump audiodg.exe to realtime priorty instead of the media player software, since the media playback is buffered with a sufficiently long buffer to audiodg, while audiodg is using a very small buffer to the soundcard.  You may have to use Process Hacker to set the priority on audiodg.exe, though.

    I used this command just now on 7-zip, and it was started with realtime priority:
Code:
start "7zFM" /REALTIME /B "C:\Program Files\7-Zip\7zFM.exe"

ill try this tonight...
zen dream
(13 items)
 
the old nag
(13 items)
 
 
CPUMotherboardGraphicsRAM
Zen 1700 Asrock B350 Pro4 MSI RX 480 4GB Crucial Ballistix DDR4 2400 2x4GB 
Hard DriveCoolingMonitorKeyboard
*ntel 600p 256GB NVMe Thermalright TRUE Spirit 140 Direct Dell SE2717HX Filco Magestouch MX Brown Tenkeyless 
PowerCaseMouseMouse Pad
SeaSonic M12II 620W Antec 300 Logitech G400 Glorious PC Gaming Large 
Audio
Sennheiser HD598 
CPUMotherboardRAMHard Drive
Phenom II x4 955 Asus M3N78 PRO 2GB Corsair XMS2-8500 DDR2 5-5-5-15 (2) OCZ 128GB SSD 
Hard DriveHard DriveHard DriveHard Drive
OCZ 30 GB SSD Samsung 2TB WD Black 2TB  WD Green 2TB 
OSMonitorPowerCase
Windows 10 x64 Dell P2414H Corsair CX430 v2 Fractal Design Define R5 
Other
Linksys EA6350 AC1200+  
  hide details  
Reply
zen dream
(13 items)
 
the old nag
(13 items)
 
 
CPUMotherboardGraphicsRAM
Zen 1700 Asrock B350 Pro4 MSI RX 480 4GB Crucial Ballistix DDR4 2400 2x4GB 
Hard DriveCoolingMonitorKeyboard
*ntel 600p 256GB NVMe Thermalright TRUE Spirit 140 Direct Dell SE2717HX Filco Magestouch MX Brown Tenkeyless 
PowerCaseMouseMouse Pad
SeaSonic M12II 620W Antec 300 Logitech G400 Glorious PC Gaming Large 
Audio
Sennheiser HD598 
CPUMotherboardRAMHard Drive
Phenom II x4 955 Asus M3N78 PRO 2GB Corsair XMS2-8500 DDR2 5-5-5-15 (2) OCZ 128GB SSD 
Hard DriveHard DriveHard DriveHard Drive
OCZ 30 GB SSD Samsung 2TB WD Black 2TB  WD Green 2TB 
OSMonitorPowerCase
Windows 10 x64 Dell P2414H Corsair CX430 v2 Fractal Design Define R5 
Other
Linksys EA6350 AC1200+  
  hide details  
Reply
post #14 of 15
Quote:
Originally Posted by DuckieHo View Post

A single-core CPU without video off-loading can still have issues with 1080p.....

cats can swim in water
post #15 of 15
Thread Starter 
Quote:
Originally Posted by Techie007 View Post

Quote:
Originally Posted by ihatelolcats View Post

i created a batch file to always run an audio player in realtime priority, however it only elevates to high priority. is there a workaround for this? its a single core laptop and audio will drop if its fully loaded. thanks for input

cmd /c start "xmplay" /REALTIME /B "C:\Program Files\xmplay\xmplay.exe"

    The "cmd /c " part isn't needed.  The code should begin with "start".  However, the rest of the command (as shown above) should start xmplay.exe at realtime priority.  It is possible that xmplay is lowering its priority to high when it sees that it is at realtime.  Also, in my experience, when there are audio glitches, it helps to bump audiodg.exe to realtime priorty instead of the media player software, since the media playback is buffered with a sufficiently long buffer to audiodg, while audiodg is using a very small buffer to the soundcard.  You may have to use Process Hacker to set the priority on audiodg.exe, though.

    I used this command just now on 7-zip, and it was started with realtime priority:
Code:
start "7zFM" /REALTIME /B "C:\Program Files\7-Zip\7zFM.exe"

still only sets to high instead of realtime. i hadnt considered that the program might limit itself, that may be the case. but i have no idea why that would be. access is denied to audiodg...will check out process hacker but i guess for now i will resort to using process lasso

the cpu isnt underpowered to play audio by itself. responses to this effect are not helpful, though i know you are trying to be

edit, ok i made a shortcut to the bat and set it to run as administrator in properties. that seems to have fixed it. i thought bats ran with all the permissions of the current user and my account is an admin, weird. i also changed secpol.exe to allow this account to increase permissions in addition to Administrator
Edited by ihatelolcats - 3/25/14 at 7:43pm
zen dream
(13 items)
 
the old nag
(13 items)
 
 
CPUMotherboardGraphicsRAM
Zen 1700 Asrock B350 Pro4 MSI RX 480 4GB Crucial Ballistix DDR4 2400 2x4GB 
Hard DriveCoolingMonitorKeyboard
*ntel 600p 256GB NVMe Thermalright TRUE Spirit 140 Direct Dell SE2717HX Filco Magestouch MX Brown Tenkeyless 
PowerCaseMouseMouse Pad
SeaSonic M12II 620W Antec 300 Logitech G400 Glorious PC Gaming Large 
Audio
Sennheiser HD598 
CPUMotherboardRAMHard Drive
Phenom II x4 955 Asus M3N78 PRO 2GB Corsair XMS2-8500 DDR2 5-5-5-15 (2) OCZ 128GB SSD 
Hard DriveHard DriveHard DriveHard Drive
OCZ 30 GB SSD Samsung 2TB WD Black 2TB  WD Green 2TB 
OSMonitorPowerCase
Windows 10 x64 Dell P2414H Corsair CX430 v2 Fractal Design Define R5 
Other
Linksys EA6350 AC1200+  
  hide details  
Reply
zen dream
(13 items)
 
the old nag
(13 items)
 
 
CPUMotherboardGraphicsRAM
Zen 1700 Asrock B350 Pro4 MSI RX 480 4GB Crucial Ballistix DDR4 2400 2x4GB 
Hard DriveCoolingMonitorKeyboard
*ntel 600p 256GB NVMe Thermalright TRUE Spirit 140 Direct Dell SE2717HX Filco Magestouch MX Brown Tenkeyless 
PowerCaseMouseMouse Pad
SeaSonic M12II 620W Antec 300 Logitech G400 Glorious PC Gaming Large 
Audio
Sennheiser HD598 
CPUMotherboardRAMHard Drive
Phenom II x4 955 Asus M3N78 PRO 2GB Corsair XMS2-8500 DDR2 5-5-5-15 (2) OCZ 128GB SSD 
Hard DriveHard DriveHard DriveHard Drive
OCZ 30 GB SSD Samsung 2TB WD Black 2TB  WD Green 2TB 
OSMonitorPowerCase
Windows 10 x64 Dell P2414H Corsair CX430 v2 Fractal Design Define R5 
Other
Linksys EA6350 AC1200+  
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Windows
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › Problem with always run a program in realtime priority