mirror of
https://git.roussel.pro/telecom-paris/pact.git
synced 2026-02-09 10:30:17 +01:00
suppr du delay pour benchmark
This commit is contained in:
@@ -21,7 +21,7 @@ class WebsocketServer:
|
||||
messages = self.getEffects()
|
||||
hands.frame()
|
||||
await websocket.send(json.dumps(messages))
|
||||
await asyncio.sleep(1/30)
|
||||
# await asyncio.sleep(1/30)
|
||||
|
||||
#Remplacer ça par la fonction qui récupère les effets (dans le module de reconnaissance de gestes)
|
||||
def getEffects():
|
||||
|
||||
@@ -12,8 +12,6 @@ class CameraEditor {
|
||||
this.images = {};
|
||||
this._startup();
|
||||
this._loadImages();
|
||||
this.startupTime;
|
||||
this.frameCount = 0;
|
||||
}
|
||||
|
||||
_startup() {
|
||||
@@ -61,10 +59,6 @@ class CameraEditor {
|
||||
}
|
||||
|
||||
_frame() {
|
||||
if(this.startupTime == undefined){
|
||||
this.startupTime = Date.now();
|
||||
}
|
||||
this.frameCount++;
|
||||
const context = canvas.getContext("2d");
|
||||
if(this.streaming) {
|
||||
if (this.width && this.height) {
|
||||
|
||||
Reference in New Issue
Block a user