ParticleSystem3DLogging QML Type

Provides information of the particle system. 更多...

导入语句: import QtQuick3D.Particles3D
Since: Qt 6.2
继承: QtObject

特性

详细描述

ParticleSystem3DLogging type provides information about particle system statistics. This element cannot be created directly, but can be retrieved from a ParticleSystem3D .

特性文档编制

loggingInterval : int

This property defines in milliseconds how often the logging data is updated. Longer update time increases the accuracy of time and timeAverage , while shorter update times keep the data more up to date.

默认值为 1000 .

[read-only] particlesMax : int

This property holds the maximum amount of particles in this system. Maximum amount is the sum of system particles maxAmount 特性。

[read-only] particlesUsed : int

This property holds the amount of particles currently in use in this system. This value should be close to particlesMax at some point of particle system animation. If it is much smaller, consider decreasing maxAmount values. If it reaches particlesMax , particles are used effectively but it can also mean that particles are reused before they reach the end of their lifeSpan . In this case, consider increasing the maxAmount 值。

[read-only] time : real

This property holds the time in milliseconds used for emitting and animating particles in each frame.

[read-only] timeAverage : real

This property holds the average time in milliseconds used for emitting and animating particles in each frame. Average is calculated from the past 100 logging updates. So when loggingInterval is 1000, this represents an average time in past 100 seconds. This can be used for measuring the performance of current particle system.

[read-only] updates : int

This property holds the amount of particle system updates since the last logging. When loggingInterval is 1000 (default), this can be considered to match the fps.