I'm using python's pyglet module (python 3 on Windows). When I refer to any classes within pyglet.image, python's CPU usage jumps up and doesn't drop until I exit python. For example:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Anaconda3>python.exe
Python 3.4.3 |Anaconda 2.3.0 (64-bit)| (default, Mar 6 2015, 12:06:10) [MSC v.1
600 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyglet #No problem!
>>> pyglet.image.ImageData #Heavy CPU load until I exit python
<class 'pyglet.image.ImageData'>
Is this expected behavior? Why does mentioning this class (not even instantiating it) lead to such high CPU load?
Systems I've tested:
Windows 7 desktop with Anaconda python 3.4.3 and pyglet installed through 'pip install pyglet': High CPU usage (my problem)
The same Win7 desktop with Anaconda python 3.4.3, but pyglet installed through 'pip install hg+https://bitbucket.org/pyglet/pyglet': High CPU usage.
The same Win7 desktop with python 3.5 from python.org and pyglet installed through 'pip install pyglet': High CPU usage.
Fedora 22 Lenovo laptop with python 3.4.2 and pyglet 1.2.1 installed through dnf: no problem.
Windows 10 HP laptop with Anaconda python 3.4 and pyglet installed through 'pip install pyglet': no problem.
Is it possible this is hardware-dependent?