PDA

View Full Version : dynamic SV and memory!



DimaS
03-12-2003, 10:01 PM
Hi! I have n-objects.Each object have list of
shadow volumes. One shadow volume per effected light. Lights can move and objects can move. all ok, BUT! if light leave object i need to destroy SV-buffer in object , and if light touch object i need to create SV-buffer for object. HOW HANDLE DYNAMIC FAST MEMORY ALLOCATIONS FOR THIS PROCESS IN REAL-TIME ? What do you think on this problem ?
I think J.C. in D3 slowe this problem ...

JustHanging
03-13-2003, 01:53 AM
Hi,

Would it be so bad to have a maximum number of lights that can affect the object, and have fixed set of buffers always allocated for an object? That way no dynamic allocation would be needed. Whether this is acceptable or not depends on what you're doing, for games it should be ok.

-Ilkka

V-man
03-13-2003, 11:08 AM
I wonder what the memory requirement will be for D3, both RAM and video.

I'm guessing over 200MB & 32 at minimum settings http://www.opengl.org/discussion_boards/ubb/smile.gif

PS: I would opt for one time allocation since there isnt much point in deallocating and reallocating continuously as the program runs.