Announcement

Collapse
No announcement yet.

ArraySize Limit

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    ArraySize Limit

    Hey
    I want to start off by saying since swapping to UE4 from another engine I am loving it. Top work.
    But I have noticed some things that need fixing.

    The quick version of what I am about to say is you guys need to increase the size limit of arrays from 1,024.

    How I came to this;
    I was working on making a rain and weather system for my game. I can't use collision to cull rain indoors because its a survival game and buildings get created at run time. The collision cull feature relies on distance field meshes. Which does not get generated for objects created at run time. (This also needs fixing, or at least a way for the programmer to request a distance field mesh be generated).

    So the method I am using is material driven and the material will cull when existing in the same space as my cull boxes. This requires storing the physical co-ordinates of each box in an array to be used by the material.

    The issue with the current size limit of arrays is that now I am limited to a mere 512 places in my game that rain can't exist.

    Adding the ability to generate distance meshes might take a bit of time for you guys to code up. But please increase the size limit of arrays because this would be super quick for you guys to do.

    #2
    MPC feature was designed to supported cases when you would use a single entry for many materials, so you don't have to create dynamic material instances to react on global parameter changes (snowing, raining, any gameplay parameter).

    If every Material Parameter Collection entry matches a single place in game, you should consider a different method like creating a dynamic material instance for material in building actors (yep, processing it could be CPU heavy for so many materials).
    Or try thinking on different method for achieving this goal. Creating MPC for runtime-generated place in game sounds like a hack.

    Comment

    Working...
    X