mirror of
https://github.com/quantum5/punyverse.git
synced 2025-04-24 13:11:57 -04:00
The anti-aliasing is has little benefit but killed a card. It also makes text blurry. Added vsync back.
This commit is contained in:
parent
55ee2ee3d2
commit
678938ab10
|
@ -21,7 +21,7 @@ def main():
|
||||||
if args:
|
if args:
|
||||||
game.TICKS_PER_SECOND = args.ticks
|
game.TICKS_PER_SECOND = args.ticks
|
||||||
|
|
||||||
game.Applet(width=INITIAL_WIN_WIDTH, height=INITIAL_WIN_HEIGHT, caption=WIN_TITLE, resizable=True, vsync=0)
|
game.Applet(width=INITIAL_WIN_WIDTH, height=INITIAL_WIN_HEIGHT, caption=WIN_TITLE, resizable=True)
|
||||||
pyglet.app.run()
|
pyglet.app.run()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -157,14 +157,6 @@ class Applet(pyglet.window.Window):
|
||||||
glClearColor(0, 0, 0, 1)
|
glClearColor(0, 0, 0, 1)
|
||||||
glClearDepth(1.0)
|
glClearDepth(1.0)
|
||||||
|
|
||||||
if not texture.badcard:
|
|
||||||
glEnable(GL_BLEND)
|
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
|
|
||||||
glEnable(GL_LINE_SMOOTH)
|
|
||||||
glEnable(GL_POLYGON_SMOOTH)
|
|
||||||
glHint(GL_LINE_SMOOTH_HINT, GL_NICEST)
|
|
||||||
glHint(GL_POLYGON_SMOOTH_HINT, GL_NICEST)
|
|
||||||
|
|
||||||
glAlphaFunc(GL_GEQUAL, 0.2)
|
glAlphaFunc(GL_GEQUAL, 0.2)
|
||||||
glDepthFunc(GL_LEQUAL)
|
glDepthFunc(GL_LEQUAL)
|
||||||
glEnable(GL_DEPTH_TEST)
|
glEnable(GL_DEPTH_TEST)
|
||||||
|
|
Loading…
Reference in a new issue