|
@@ -837,6 +837,8 @@ class Main():
|
|
|
artnet = self.artnet[str(univ)]
|
|
|
artnet.dmx = [0]*512
|
|
|
|
|
|
+ fps_start = time.time()
|
|
|
+ fps = 0
|
|
|
while 1:
|
|
|
self.lock.acquire_lock()
|
|
|
t = clock.time()
|
|
@@ -929,6 +931,13 @@ class Main():
|
|
|
self.lock.release_lock()
|
|
|
|
|
|
time.sleep(0.01)
|
|
|
+ fps += 1
|
|
|
+ if fps >= 100:
|
|
|
+ fps_t = time.time()
|
|
|
+
|
|
|
+ print(round(100/(fps_t-fps_start),2),"core/fps")
|
|
|
+ fps = 0
|
|
|
+ fps_start = time.time()
|
|
|
|
|
|
main = Main()
|
|
|
if __run_main:
|
|
@@ -1090,6 +1099,7 @@ def JCB(data): #json client input
|
|
|
|
|
|
|
|
|
|
|
|
+ cprint("-","{:0.04} sec.".format(time.time()-t_start),color="yellow")
|
|
|
|
|
|
try:
|
|
|
main.lock.acquire_lock()
|
|
@@ -1145,7 +1155,7 @@ def JCB(data): #json client input
|
|
|
cprint("Error on line {}".format(sys.exc_info()[-1].tb_lineno),color="red")
|
|
|
raise e
|
|
|
|
|
|
-
|
|
|
+ cprint(" ","{:0.04} sec.".format(time.time()-t_start),color="yellow")
|
|
|
|
|
|
|
|
|
def CB(data):
|