   Maximum number of dlls?
  Hi, I am currently implementing a dll based shader/effect system as Yann L described it in his thread 3 years ago.I just wonder if there s a maximum number of dlls you can load from a program?thx in advance   
  The number of DLLs you can load is only limited by the amount of address space availiable. On 32-bit Windows (I presume it's different for 64-bit), that's roughly 1.5GB of data you have (Leaving room for the heap and the EXE itself). Each DLL gets loaded into memory on an address that is aligned to one memory page (4k I think, although I'm not sure), so you need to take padding into account too.How many DLLs are you thinking? You can always load them at runtime and free them when you're done.   ;  The whole systems works as followsYou have materials, these specify an effect that is linked to the materiale.g.:material:* effect 4layer_blended_terrain* effect-parameters ...* effect wooden_step* effect-parameters ...* effect bullethit* effect-parameters ...now the effect classeseffect:* name 4layer_blended_terrain* type graphic* id 2003* use 4layer_blendingeffect:* name wooden_step* type sound* id 2004* use walkstepeffect:* name bullethit* type particle* id 2005* use particle_spawnerthe shader is associated with a dllefx-object#1:* name dx9shader* can 4layer_blending, 3layer_blending ....* priority 1000* dll dx9efx.dllefx-object#1:* name dx9particles* can particle_spawner* priority 1001* dll dx9efx.dllefx-object#1:* name dx8shader* can 4layer_blending* priority 900* dll dx8efx.dllas you see this system allows for easy patching and is pretty flexible regarding its usage. The number of dlls will increase the further the project proceedsI can add several efx-objects into the same dll ....The whole thing works with implemented exported virtual base classes that care returned by a getter function of the dll.The dlls are assigned at level loadtime or at engine startup to render the game gui before entering a match. And the priority determines which efx-objects to use coresponding to the users detail settings   