GUIGraphicsContext.State.SUSPENDING and CPU usage (1 Viewer)

Messiahs

Portal Pro
December 11, 2008
222
106
Germany Germany
Country flag
Hi,

with:

Code:
private void SuspendMP()
{
   InputDevices.Stop();
   GUIGraphicsContext.form.Hide();
   GUIGraphicsContext.CurrentState = GUIGraphicsContext.State.SUSPENDING; // <- without this line everything is ok
}
I get a high cpu usage after 'GUIGraphicsContext.State.SUSPENDING' (with MP 1.9)....

Any ideas are welcome.
 
Last edited by a moderator:

HomeY

Test Group
  • Team MediaPortal
  • February 23, 2008
    6,465
    4,631
    45
    ::1
    Netherlands Netherlands
    Country flag
    With MediaPortal 1.9 Final you mean (since you posted in the 1.9 Pre Release thread) ;)
    @Developers any thoughts?
     

    Messiahs

    Portal Pro
    December 11, 2008
    222
    106
    Germany Germany
    Country flag
    Yes sorry, 1.9 final
    cpuUsage1.png


    MediaPortal.log
    Code:
    014-11-07 20:42:02,462] [Log    ] [MPMain   ] [DEBUG] - Window: OnlineVideos.MediaPortal1.GUIOnlineVideos init
    [2014-11-07 20:42:02,463] [Log    ] [MPMain   ] [DEBUG] - g_player: Setting ShowFullScreenWindowVideo to MediaPortal.Player.g_Player+ShowFullScreenWindowHandler
    [2014-11-07 20:42:06,982] [Log    ] [MPMain   ] [DEBUG] - TextureManager: CleanupThumbs()
    [2014-11-07 20:42:14,519] [Log    ] [MPMain   ] [DEBUG] - D3D: Hiding mouse cursor
    [2014-11-07 20:42:14,520] [Log    ] [MPMain   ] [DEBUG] - D3D: Cursor ShowMouseCursor state -1
    [2014-11-07 20:42:14,535] [Log    ] [MPMain   ] [DEBUG] - D3D: OnPaint()
    [2014-11-07 20:42:16,803] [Log    ] [MPMain   ] [DEBUG] - D3D: Showing mouse cursor
    [2014-11-07 20:42:16,804] [Log    ] [MPMain   ] [DEBUG] - D3D: Cursor ShowMouseCursor state 1
    [2014-11-07 20:42:16,804] [Log    ] [MPMain   ] [DEBUG] - D3D: OnPaint()
    [2014-11-07 20:42:24,535] [Log    ] [MPMain   ] [DEBUG] - D3D: Hiding mouse cursor
    [2014-11-07 20:42:24,536] [Log    ] [MPMain   ] [DEBUG] - D3D: Cursor ShowMouseCursor state -1
    [2014-11-07 20:42:24,552] [Log    ] [MPMain   ] [DEBUG] - D3D: OnPaint()
    //now start suspending
    [2014-11-07 20:44:31,545] [Log    ] [MPMain   ] [DEBUG] - D3D: Showing mouse cursor
    [2014-11-07 20:44:31,545] [Log    ] [MPMain   ] [DEBUG] - D3D: Cursor ShowMouseCursor state 1
    [2014-11-07 20:44:31,545] [Log    ] [MPMain   ] [DEBUG] - D3D: OnPaint()
    [2014-11-07 20:44:37,612] [Log    ] [MPMain   ] [DEBUG] - TextureManager: CleanupThumbs()
    [2014-11-07 20:44:44,394] [Log    ] [MPMain   ] [DEBUG] - Main: WM_ACTIVATE (WA_INACTIVE)
    [2014-11-07 20:44:44,394] [Log    ] [MPMain   ] [INFO ] - Main: Deactivation request received
    [2014-11-07 20:44:44,394] [Log    ] [MPMain   ] [DEBUG] - D3D: OnLostFocus()
    [2014-11-07 20:44:45,658] [Log    ] [MPMain   ] [DEBUG] - Main: WM_ACTIVATE (WA_ACTIVE)
    [2014-11-07 20:44:45,658] [Log    ] [MPMain   ] [INFO ] - Main: Activation request received
    [2014-11-07 20:44:45,658] [Log    ] [MPMain   ] [DEBUG] - D3D: OnGotFocus()
    [2014-11-07 20:44:45,798] [Log    ] [MPMain   ] [DEBUG] - Main: WM_ACTIVATE (WA_INACTIVE)
    [2014-11-07 20:44:45,798] [Log    ] [MPMain   ] [INFO ] - Main: Deactivation request received
    [2014-11-07 20:44:45,798] [Log    ] [MPMain   ] [DEBUG] - D3D: OnLostFocus()
     
    Last edited:

    regeszter

    Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Hungary Hungary
    Can you test it without plugins using watchdog option Report bug to Team Mediaportal ?
     

    Messiahs

    Portal Pro
    December 11, 2008
    222
    106
    Germany Germany
    Country flag
    i think i need a plugin to call this function... or ?
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    Top Bottom