remove layer usage to reduce vram consumption
This commit is contained in:
@@ -108,6 +108,7 @@ class BlobRect : public BlobShape {
|
||||
|
||||
private:
|
||||
void checkAtRest(float speed);
|
||||
void beginRetire();
|
||||
|
||||
// Physics state
|
||||
QPointF m_prevScenePos;
|
||||
@@ -115,6 +116,12 @@ class BlobRect : public BlobShape {
|
||||
bool m_physicsActive = false;
|
||||
bool m_hasPrevPos = false;
|
||||
|
||||
bool m_retiring = false;
|
||||
QElapsedTimer m_retireElapsed;
|
||||
float m_retire00 = 1.0f;
|
||||
float m_retire01 = 0.0f;
|
||||
float m_retire11 = 1.0f;
|
||||
|
||||
// Symmetric 2x2 deformation matrix components (3 independent: m00, m01,
|
||||
// m11) Rest state is identity: m00=1, m01=0, m11=1
|
||||
float m_dm00 = 1.0f;
|
||||
|
||||
Reference in New Issue
Block a user