Speeding up Media Portal Boot (1 Viewer)

Scythe42

Retired Team Member
  • Premium Supporter
  • June 20, 2009
    2,065
    2,703
    52
    Berlin
    Home Country
    Germany Germany
    Regarding startup time - @Scythe42 - words of wisdom?
    Plugins are the main problem. They can be loaded/started while MP already shows basic home. If you select a window, which uses a certain plugin the contents are only shown when the plugin is ready. Need to check it in detail where it has side effects. Initial tests have shown that it might work this way with current master.

    Probably some additional checks or a general "Loading XML" would help greatly (darken current window/element, overlay with a Loading Animation like the Wait Cursor or just the part where it is showing its contents) is needed if a plugin could cause problems. Need to test in detail. No change to Skins needed. MP should handle this.

    This can be done without changing the plugin architecture. Even though there is huge potential doing some overhaul here in the way MP handles them.

    But on my current test builds with MP out of the Box and the following Plugins:
    • Fanart Handler
    • Latest Media Handler
    • Moving Pictures
    • TV Series
    • My Films
    • Online Videos
    • Power Scheduler++
    • Sub Central
    • Trakt
    • Info Service
    • IMDB+
    • Fritz Box Manager
    • Browse the web
    • Event Ghost Plus
    • Weather Thingy by Micropolis (forgot the exact Name)
    I have a startup time of a few seconds on a four year old machine. A bit slower than XBMC though. Splash-Screen stays active in the background for a couple of seconds still show initialising stuff while MP is already there (as it is not D3D, which the rest is). Tested with StreamedMP, Default/Default Wide and of course Titan.

    In addition the general delayed loading of some resources should be changed to background loading. This will make MP feel a bit snappier. This will happen with a replacement of the TextureManger/FontEngine.

    Also this stuff should stay in memory. We are talking 4MB compared to 16MB on DefaultWide for example. No need to conserve GPU memory here. We hardly use any and the skins are still small anyway. There is no noteworthy difference in startup time by loading all GFX stuff directly. But as said: delayed loading should be switched to background loading.

    Not loading/disposing stuff on demand helps a lot in general. It should make even TV Zapping a bit faster as well (there are some Load()/Dispose() involved if I am not mistaken). We have way too many plugins/windows defined as "delayed loading" anyway or freeing up there resources all the time and re-allocating them later.

    Also Input Devices seems to cause some problems. There are some checks involved depending on what you activated that cause additional delay until it runs in a timeout. Haven't figured out which ones yet.
     
    Last edited:

    Scythe42

    Retired Team Member
  • Premium Supporter
  • June 20, 2009
    2,065
    2,703
    52
    Berlin
    Home Country
    Germany Germany
    Also similar to Office Quickstart we can keep parts of MP in memory until a restart as long as there is free memory or already loading some stuff to memory before MP is even started.. Starting with Vista (read Kernel 6.x) there are options for this (even without a Quickstart feature). The system uses free memory to cache applications and their resources.

    Currently this doesn't work with MP as we are always disposing stuff (to be on the same side) before re-loading it. Better state tracking of what is allocated and what not could help here out of the box on subsequent restarts without re-booting the system. This would be GuiWindowManager.cs if I am not mistaken.

    But need to read up on MSDN if there are some special requirements when allocating resources to leverage Kernel 6.x stuff.

    All in all this is a great feature of Kernel 6.x that free memory is not wasted. Only when another application requests memory this "system cache" is freed up. But users still look on free memory too much.

    The Application Caching wasn't really marketed by MS with Vista. So users still use "Memory Free/Cleanup" tools. Yeah, gives you more free memory that does nothing and makes the system less snappier on subsequent reuses of Apps when you don't shut it down (using hibernation since ages). OSX users know this for about a decade now.

    Anyway, I'll dig a bit into MSDN ans see what we can do out of the box in general to be less "XP legacy" on modern systems.
     
    Last edited:

    Users who are viewing this thread

    Similar threads

    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select "Internal DirectShow player" as music output, but then you lose gapless playback. If you you don't have multichannel music you can choose WASAPI as the output and set the number of speakers to stereo. I have...
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select...
    Not sure if this a a bug/config/settings problem. I am running a media portal 2.5 server with 2.41 client but it seems I get the...
    Replies
    1
    Views
    655
    I see no reason in Windows XP or 7, in my experience, on ancient Atom, Windows 10 worked faster than XP or 7...
    I see no reason in Windows XP or 7, in my experience, on ancient Atom, Windows 10 worked faster than XP or 7...
    Hi all, I'm new to MediaPortal and looking forward to using it. Just one catch and I apologize if it sounds silly - I want to run...
    Replies
    3
    Views
    2K
    4.5 is really old. I'm not sure 4.5.5 even is a version that actually existed. You should be able to install .NET Framework 4.8.0 on Windows 7 SP1
    4.5 is really old. I'm not sure 4.5.5 even is a version that actually existed. You should be able to install .NET Framework 4.8.0...
    My TV PC is more a cast-off on older hardware (a 'Quiet PC' i5 4690, 16GB ram, 2xSSD 1xHDD, system graphics), mainly as a cheap way...
    Replies
    5
    Views
    2K
    I note that you are using MP2. The following applies to MP1, but I think that MP2 is identical in this situation. "TV Server Config" has a "TV Mapping" panel in the "TV Channels" section. On the "TV Mapping" tab: The left column lists the channels that have not yet been mapped to the TV tuner identified by the drop-down menu just...
    I note that you are using MP2. The following applies to MP1, but I think that MP2 is identical in this situation. "TV Server...
    I've scanned for channels, and got all channels mapped to tuner 0 of my 8 channel TV card (eg: 2 cards of 4 channels each) Is there...
    Replies
    1
    Views
    816
    MP1 supports TVE 3 MP2 supports TVE 3, TVE 3.5 (unstable), TV Mosaic - I think so.
    MP1 supports TVE 3 MP2 supports TVE 3, TVE 3.5 (unstable), TV Mosaic - I think so.
    I am a long-time user of MediaPortal to watch TV. I use the Media Portal TV Server as a backend, and Kodi (previously known as...
    Replies
    19
    Views
    8K
    Top Bottom