![]() If you have a single screen and don't need movies then pygame might be a better choice. (And you can learn something about mainloops in Pyglet, Tkinter, PyQt, wxPython and other GUIs, not only in Python) Pyglet is framework - it has already mainloop and you can't change it and. The advantage of pyglet is its ability to handle multiple windows and monitors and the fact that it can play movies. You have to do all on your own - starting at mainloop and all functions called by mainloop. ![]() Image = ("square.png").convert()ĬProfile result for pygame: 5341607 function calls in 9.429 seconds I am new to psychopy and I have written a small piece of code to display fixation point. In fact, for text, I think pygame might render faster than pyglet. Screen = _mode((WINDOWWIDTH,WINDOWHEIGHT)) Pygame version: import pygame, sys, random What’s the difference between Scapy, pygame, and pyglet Compare Scapy vs. If youre on Windows, you may need to uninstall pygame ( pip uninstall pygame ). Isnt OpenGl supposed to be faster for this kind of thing? (16x16 png) On the pygame version I get 30 fps but 10 fps with pyglet.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |