Re: 32-bit bitmap resources - pixel data

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: le ténébreux (prince.d'aquitaine_at_tour.abolie)
Date: 12/28/04

  • Next message: Prasad Dannani: "About Resize Redraw"
    Date: 28 Dec 2004 19:35:50 +1050
    
    

    Severian <severian@chlamydia-is-not-a-flower.com> wrote:

    >> Does this mean that the resource is now permanently in memory
    >> until the program terminates? Or was it taking up memory anyway,
    >> even before Load/LockResource() ?
    >
    > UnlockResource/FreeResource are no longer necessary. The resource is
    > always mapped into your virtual address space; the data will be paged
    > in automatically when referenced, and page out as not needed, just
    > like the executable program sections (.text). LockResource() is still
    > required, but all it really does is convert the HGLOBAL to a pointer.
    >
    > So, your resources are taking up *virutal address space*, but only
    > occupying real memory when needed.

    Excellent. Thanks very much for clearing that up.


  • Next message: Prasad Dannani: "About Resize Redraw"

    Relevant Pages

    • Re: C++ sucks for games
      ... Just a typo that can be horrendous to ... but if your memory management is scattered and out of control, ... >>implement raii, and i think that's a serious flaw. ... resource - and resource can be anything at all. ...
      (comp.lang.lisp)
    • RFC: Memory Controller
      ... We've seen a lot of discussion lately on the memory controller. ... limit the usage of the resource to the specified value. ... with the specified guarantee of resource availability. ...
      (Linux-Kernel)
    • Re: RAM-CPU Singularity
      ... resource to compensate the urgent needs of another kind of resource. ... That's why the original thinkers came up with the cache stuff: ... It's the same with processors and memory. ... I guess you called "virtual memory" the swap space on disk, ...
      (comp.theory)
    • Re: Linux as resilient as BSD, resource hogging?
      ... >> one particular resource, most of them can be used for all resources. ... I did fully implement a memory controlling ulimit (admittedly ... > causes additional paging. ... > *hog* process would be suspended. ...
      (comp.os.linux.security)
    • Re: [ckrm-tech] [RFC][PATCH] UBC: user resource beancounters
      ... kernel memory and virtual memory. ... fair CPU scheduler is not tied to UBC in any regard. ... the infrastructure (for resource management) we ... it is also more logical to have them separate since they ...
      (Linux-Kernel)