[DEV] remove some logs

This commit is contained in:
Edouard DUPIN 2021-05-31 21:54:07 +02:00
parent 1707c6cb11
commit 91b504bc63
2 changed files with 9 additions and 9 deletions

View File

@ -35,7 +35,7 @@ public class ResourceTexture2 extends Resource {
Log.critical("Request resource file : '" + uri + "' With the wrong type (dynamic cast error)"); Log.critical("Request resource file : '" + uri + "' With the wrong type (dynamic cast error)");
return null; return null;
} }
Log.debug("CREATE: new Texture: " + uri); Log.verbose("CREATE: new Texture: " + uri);
return new ResourceTexture2(uri); return new ResourceTexture2(uri);
} }
@ -133,7 +133,7 @@ public class ResourceTexture2 extends Resource {
// Flush the data to send it at the openGl system // Flush the data to send it at the openGl system
public synchronized void flush() { public synchronized void flush() {
// request to the manager to be call at the next update ... // request to the manager to be call at the next update ...
Log.error("Request UPDATE of Element"); Log.verbose("Request UPDATE of Element");
Resource.getManager().update(this); Resource.getManager().update(this);
} }
@ -225,7 +225,7 @@ public class ResourceTexture2 extends Resource {
@Override @Override
public synchronized boolean updateContext() { public synchronized boolean updateContext() {
Log.error("updateContext [START]"); Log.verbose("updateContext [START]");
//final Steady tic = Steady.now(); //final Steady tic = Steady.now();
/* /*
* TODO : use unlockable synchronized ... if (lock.tryLock() == false) { //Lock * TODO : use unlockable synchronized ... if (lock.tryLock() == false) { //Lock

View File

@ -181,7 +181,7 @@ public class ResourceVirtualArrayObject extends Resource {
public void flush() { public void flush() {
// request to the manager to be call at the next update ... // request to the manager to be call at the next update ...
Resource.getManager().update(this); Resource.getManager().update(this);
Log.error("Request flush of VAO: [" + getId() + "] '" + getName() + "'"); Log.verbose("Request flush of VAO: [" + getId() + "] '" + getName() + "'");
} }
/** /**
@ -198,7 +198,7 @@ public class ResourceVirtualArrayObject extends Resource {
public void loadAgainToVAO() { public void loadAgainToVAO() {
GL30.glBindVertexArray(this.vaoID); GL30.glBindVertexArray(this.vaoID);
Log.error("push VAO: [" + getId() + "] '" + getName() + "'"); Log.verbose("push VAO: [" + getId() + "] '" + getName() + "'");
if (this.indices != null) { if (this.indices != null) {
Log.verbose("Set indices"); Log.verbose("Set indices");
bindIndicesBuffer(this.indices); bindIndicesBuffer(this.indices);
@ -224,7 +224,7 @@ public class ResourceVirtualArrayObject extends Resource {
public void loadToVAO() { public void loadToVAO() {
createVAO(); createVAO();
Log.error("push VAO: [" + getId() + "] '" + getName() + "'"); Log.verbose("push VAO: [" + getId() + "] '" + getName() + "'");
if (this.indices != null) { if (this.indices != null) {
Log.verbose("Set indices"); Log.verbose("Set indices");
bindIndicesBuffer(this.indices); bindIndicesBuffer(this.indices);
@ -412,9 +412,9 @@ public class ResourceVirtualArrayObject extends Resource {
*/ */
@Override @Override
public boolean updateContext() { public boolean updateContext() {
Log.error(" Start: [" + getId() + "] '" + getName() + "' (size=" + this.vertexCount + ") ********************************"); Log.verbose(" Start: [" + getId() + "] '" + getName() + "' (size=" + this.vertexCount + ") ********************************");
if (!this.exist) { if (!this.exist) {
Log.error(" ==> ALLOCATE new handle"); Log.verbose(" ==> ALLOCATE new handle");
// Allocate and assign a Vertex Array Object to our handle // Allocate and assign a Vertex Array Object to our handle
loadToVAO(); loadToVAO();
} else { } else {
@ -426,7 +426,7 @@ public class ResourceVirtualArrayObject extends Resource {
} }
this.exist = true; this.exist = true;
Log.error(" Stop: [" + getId() + "] '" + getName() + "'"); Log.verbose(" Stop: [" + getId() + "] '" + getName() + "'");
return true; return true;
} }