#header.image can cause high CPU (1 Viewer)

tourettes

Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Please do same testing without cropping the images. As DirectX doesn't have any interest in metadata or the user program to save the file. FIle is either loading correctly or corrupted. And when its loaded it is directly converted to DX texture.
     

    Swede

    Portal Pro
    September 6, 2006
    493
    47
    West Coast Archipelago
    Home Country
    Sweden Sweden
    Not so much one can do with MS Picture manager, but I tried fliping upside down, light, and such. I also tried removing and adding metadata + changing size in metadata. None of these actions removed the problem. Only cropping. I wonder how files with the exact same size can be OK?
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    File size doesn't matter. Only thing that matters is the actual image width and height.
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    There are quite some other properties which might be relevant for the rendering as well. E.g. DX could be picky about the color format + alpha channel and maybe has to convert / upscale the source image to it's own needs.
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    There are quite some other properties which might be relevant for the rendering as well. E.g. DX could be picky about the color format + alpha channel and maybe has to convert / upscale the source image to it's own needs.

    That doesn't matter as GUI engine uses specific texture format. I.e. the source picture is not going to affect that.
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    With size, I ment Width and Height.

    If you reduce the size for one image then the GPU memory requirement will go down. Maybe that will explain the behaviour. But that is for sure that the image metadata / type cannot affect.
     

    Swede

    Portal Pro
    September 6, 2006
    493
    47
    West Coast Archipelago
    Home Country
    Sweden Sweden
    How do you explain that I can replace videos_logo with settings_logo wich has the exact same width, height and metadata. Then delete cache and restart MP and no errors.
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    How do you explain that I can replace videos_logo with settings_logo witch has the exact same width, height and metadata. Then delete cache and restart MP and no errors.

    I can't :)
     

    Swede

    Portal Pro
    September 6, 2006
    493
    47
    West Coast Archipelago
    Home Country
    Sweden Sweden
    More test results with MS-Paint :9
    I opened and saved, resulting in a non alpha ugly picture - Still problem
    draw a little in the pic - still problem
    resize to a little larger - still problem
    resize to a little smaller - still problem
    erase picture resulting in a white box - still problem
    invert of the empty white box colors - NO PROBLEM!!!
    invert colors of original (videos_logo) - problem again
    crop away all white outside actual picture - No problem
    crop a little in X - problem
    crop a little in Y - problem
    crop almost all white - No problem
    add more white again to the one I cropped - Problem again
    Hmmm... made a new empty white small picture (half size of videos_logo) - no problem
    resized the white picture to approx videos_logos size - PROBLEM

    Conclusion: Using paint, only size seem to matter wich helps Tourettes theory. I'm probably struggling with a video memory problem of some kind
     

    Users who are viewing this thread

    Top Bottom