[DEV] set game working

This commit is contained in:
Edouard DUPIN 2021-05-27 00:17:48 +02:00
parent 43ea0339f1
commit f59e53e7a4

View File

@ -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.verbose("Request UPDATE of Element"); Log.error("Request UPDATE of Element");
Resource.getManager().update(this); Resource.getManager().update(this);
} }
@ -183,7 +183,7 @@ public class ResourceTexture2 extends Resource {
this.realImageSize = this.data.getSize(); this.realImageSize = this.data.getSize();
final Vector2i compatibilityHWSize = new Vector2i(Tools.nextP2(this.realImageSize.x()), Tools.nextP2(this.realImageSize.y())); final Vector2i compatibilityHWSize = new Vector2i(Tools.nextP2(this.realImageSize.x()), Tools.nextP2(this.realImageSize.y()));
if (!this.realImageSize.equals(compatibilityHWSize)) { if (!this.realImageSize.equals(compatibilityHWSize)) {
Log.verbose("RESIZE Image for HArwareCompatibility:" + this.realImageSize + " => " + compatibilityHWSize); Log.warning("RESIZE Image for HArwareCompatibility:" + this.realImageSize + " => " + compatibilityHWSize);
this.data.resize(compatibilityHWSize.x(), compatibilityHWSize.y()); this.data.resize(compatibilityHWSize.x(), compatibilityHWSize.y());
} }
flush(); flush();
@ -224,7 +224,7 @@ public class ResourceTexture2 extends Resource {
@Override @Override
public synchronized boolean updateContext() { public synchronized boolean updateContext() {
Log.verbose("updateContext [START]"); Log.error("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