Skip to content

Instantly share code, notes, and snippets.

View dlon's full-sized avatar

David Lönnhager dlon

View GitHub Profile
@dlon
dlon / stress_test_draw_moving_pygame_render.py
Last active May 26, 2019 16:25
pygame _sdl2.Renderer stress test
"""
Moving Sprite Stress Test
Simple program to test how fast we can draw sprites that are moving
Artwork from http://kenney.nl
If Python and Arcade are installed, this example can be run from the command line with:
python -m arcade.examples.stress_test_draw_moving_pygame
"""
/*
pygame - Python Game Library
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
/*******************************************************************************
* Copyright 2011 See AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@dlon
dlon / build_ui.ps1
Last active February 20, 2019 02:57 — forked from vermiceli/build_ui.ps1
# This is a powershell commandlet equivalent of build_ui.sh for installation on Windows
# Generate python files based on the designer ui files.
# If you need to modify the python location or pyuic5/pyrcc5 path, just change the 2 variables below
$pythonPath = "C:\Python36\"
$pyqtScripts = Join-Path $pythonPath "\Scripts\"
If (!(Test-Path "designer")) {
Write-Host "Please run this from the project root"
Exit