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()
|
messages = self.getEffects()
|
||||||
hands.frame()
|
hands.frame()
|
||||||
await websocket.send(json.dumps(messages))
|
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)
|
#Remplacer ça par la fonction qui récupère les effets (dans le module de reconnaissance de gestes)
|
||||||
def getEffects():
|
def getEffects():
|
||||||
|
|||||||
@@ -12,8 +12,6 @@ class CameraEditor {
|
|||||||
this.images = {};
|
this.images = {};
|
||||||
this._startup();
|
this._startup();
|
||||||
this._loadImages();
|
this._loadImages();
|
||||||
this.startupTime;
|
|
||||||
this.frameCount = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_startup() {
|
_startup() {
|
||||||
@@ -61,10 +59,6 @@ class CameraEditor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_frame() {
|
_frame() {
|
||||||
if(this.startupTime == undefined){
|
|
||||||
this.startupTime = Date.now();
|
|
||||||
}
|
|
||||||
this.frameCount++;
|
|
||||||
const context = canvas.getContext("2d");
|
const context = canvas.getContext("2d");
|
||||||
if(this.streaming) {
|
if(this.streaming) {
|
||||||
if (this.width && this.height) {
|
if (this.width && this.height) {
|
||||||
|
|||||||
Reference in New Issue
Block a user