Tag Archives: fishwars

Fishwars: OpenGL Yes, Minimap Meh

Switching over to OpenGL to do the scaling and presenting was almost criminally easy: rather than inherit QWidget the pixelated view object inherits QGLWidget. That’s it. The CPU load is alleviated without any other changes. With some simple benchmark animation … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Fishwars: Qt’s Scaling Is Ungood

I found that using the scaled() method of the drawing surface could be replaced by a scaling factor set in QPainter to improve performance slightly. The former method creates a scaled up copy of the entire source which is then … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Fishwars: Hoping Qt Can Blit Faster

First stop on the GUI framework search: PyQt4. Out of the gate it’s looking good. It’s simple to draw primitive shapes in an off-screen buffer and then rescale that image and blit a portion of it into a bare window. … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Fishwars: GUI

Well, the thing should be windowed. It’s not going to be compelling enough or interactive enough to justify full-screen. The most common mode of operation should resemble the QBasic program: no frills, just fish and explosions, no menu bar or … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

Fishwars: Population Dynamics

The QBasic program is relatively simple as far as the rules of the fish-world go. Fish can be one of a dozen or so colors, and the torpedoes they fire at each other only destroy fish which are differently-colored. When … Continue reading

Posted in Uncategorized | Tagged | Leave a comment