Graphics

 View Only
  • 1.  Flush Texture Cache through API

    Posted 12-13-2017 22:29
    Hello,

    I'm running into an issue with a project I'm working on right now.
    I'm using the XPression as a sort of Social Media wall and we're having to display a massive amount of pictures.

    But after a while the memory gets full and I have to clear the Texture Cache to be able to continue.

    I remember vaguely that there wa ssomething you could do to prevent from your cache getting too full btu I'm not sure if it's related to the problem that I have or if it was only with online texttures.

    But is there a way to flush the cache using the API? Otherwise I can put that in the software that is displaying all of the images.

    Thanks,
    Kenneth


  • 2.  RE: Flush Texture Cache through API

    Posted 12-14-2017 16:54
    The texture cache will automatically start unloading unused textures when it reaches the pre-defined limit specified in the preferences. You should never need to manually clear it.
    The resource monitor will show you how many and what images are currently in the texture cache.. Are you seeing more than should be in there?

    #XPression


  • 3.  RE: Flush Texture Cache through API

    Posted 12-14-2017 18:03
    For some reason it's not clearing them properly I think.
    I know the cache is full when I start seeing the same picture all the time. WhenI then goto look in XPression the Memory-meter next to the performance meter is in the 90%.
    It doesn't clear the cache automatically.

    The pictures are being displayed through take items. And I think these are not getting deleted.
    But I can't really test it now because the machine is on air.

    Could it be related to that?
    #XPression


  • 4.  RE: Flush Texture Cache through API

    Posted 12-15-2017 05:31

    Attached you'll find a screenshot showing the behaviour.
    The strange thing is that I'm not getting any notification of no more space available or something like that, it just keeps repeating the same picture for a little while.


    #XPression


  • 5.  RE: Flush Texture Cache through API

    Posted 12-15-2017 13:38
    What are the texture cache settings in the preferences? It looks like the max texture cache size might not be set correctly. It defaults to 512MB so the texture cache should never grow beyond that. The only time you should see it exceed the max setting is if the images are actually thought to be in-use on-air. If you are finding it growing beyond the max; then I would examine how your API app (if you are using one) is setting them. There may be an issue there.


    #XPression


  • 6.  RE: Flush Texture Cache through API

    Posted 12-16-2017 05:09
    Hi Brian,

    The texture settings are set to 3072Mb.

    I am using the API where I'm generating takeitems which are then being placed in a group in the sequencer and triggered from there in order to be able to use the Transition Logic, using the xpBaseTakeItem.Cue() and xpBaseTakeItem.Execute().

    I'm deleting the old take-items every 5 minutes or so hoping that all of the resources would be released too but appearantly that's not happening...
    #XPression


  • 7.  RE: Flush Texture Cache through API

    Posted 12-16-2017 14:42
    That is your problem. They wont be released until you hit 3072MB in the texture cache, but by that point you've already run out of memory and crashed.
    Why not just leave it at the default of 512MB?

    #XPression