Primitive's DIRTYFLAGS_CACHE in IRR

On 22/02/2018 at 04:47, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   R19 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
Hello.

I have a scene with a simple cube. I start IRR and I check the cube's DIRTYFLAGS_CACHE.
Without making any modification to the scene, the cube's cache bit is constantly increased.
If I convert the cube into polygon, the cube's cache remains the same.
All of the above occurs without changing the cube.
What causes the primitive cube's Cache bit to change ?

Thank you for your time.

On 22/02/2018 at 06:23, xxxxxxxx wrote:

Hello.

After some searching I found that the cache bit is increased because I call EventAdd(EVENT_FORCEREDRAW). If I don't call it though, the IRR in viewport doesn't update its image.

If only polygons are used, the IRR is updated correctly and EVENT_FORCEREDRAW doesn't cause the cache bit to be increased. So how can I manually update IRR image without calling EventAdd ?

Thank you.

On 23/02/2018 at 08:20, xxxxxxxx wrote:

Hi,

I'm afraid you need to provide us with some more context. Is it Cinema 4D's IRR or some custom IRR? And where or in what context are you calling EventAdd(EVENT_FORCEREDRAW)?