Revision 8b36dabf
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/library/main/DistortedEffects.java | ||
---|---|---|
32 | 32 |
*/ |
33 | 33 |
public class DistortedEffects |
34 | 34 |
{ |
35 |
private long mID; |
|
36 |
private EffectQueue[] mQueues; |
|
35 |
private final long mID;
|
|
36 |
private final EffectQueue[] mQueues;
|
|
37 | 37 |
|
38 | 38 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
39 | 39 |
/** |
src/main/java/org/distorted/library/mesh/MeshBase.java | ||
---|---|---|
49 | 49 |
{ |
50 | 50 |
private static final int ASSOC_UBO_BINDING = 3; |
51 | 51 |
private static final int CENTER_UBO_BINDING = 4; |
52 |
static final int MAX_EFFECT_COMPONENTS= 110;
|
|
52 |
static final int MAX_EFFECT_COMPONENTS= 100;
|
|
53 | 53 |
|
54 | 54 |
// sizes of attributes of an individual vertex. |
55 | 55 |
private static final int POS_DATA_SIZE= 3; // vertex coordinates: x,y,z |
... | ... | |
1072 | 1072 |
mVBO1.markForDeletion(); |
1073 | 1073 |
mVBO2.markForDeletion(); |
1074 | 1074 |
mTFO.markForDeletion(); |
1075 |
mUBA.markForDeletion(); |
|
1076 |
mUBC.markForDeletion(); |
|
1075 | 1077 |
} |
1076 | 1078 |
|
1077 | 1079 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
src/main/java/org/distorted/library/mesh/UniformBlockAssociation.java | ||
---|---|---|
93 | 93 |
mAssociations[4*compTo+2] = assocFrom.mAssociations[4*compFrom+2]; |
94 | 94 |
} |
95 | 95 |
|
96 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
97 |
|
|
98 |
void markForDeletion() |
|
99 |
{ |
|
100 |
mUBO.markForDeletion(); |
|
101 |
} |
|
102 |
|
|
96 | 103 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
97 | 104 |
|
98 | 105 |
void print() |
src/main/java/org/distorted/library/mesh/UniformBlockCenter.java | ||
---|---|---|
80 | 80 |
mCenter[4*compTo+2] = blockFrom.mCenter[4*compFrom+2]; |
81 | 81 |
} |
82 | 82 |
|
83 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
84 |
|
|
85 |
void markForDeletion() |
|
86 |
{ |
|
87 |
mUBO.markForDeletion(); |
|
88 |
} |
|
89 |
|
|
83 | 90 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
84 | 91 |
|
85 | 92 |
float[] getBackingArray() |
Also available in: Unified diff
Plug a major memory leak.
Still one more leak remains - a similar UniformBuffer has to be markedForDeletion in the EffectQueues.