Game Maker 8.0 Flicker

Posted by DFortun81 on Oct. 9, 2012, 7:25 p.m.

Greetings guys.

I haven't blogged in a while, but I'd like everyone to know that I have solved the infamous (well, for me at least) Texture Flicker problem in Game Maker 8.0.

I've been writing a Lua framework for about 2 weeks after picking back up the project from a year ago after I abandoned it and successfully translated it into about 98% Lua. The game now just attaches to the DLL and loads the primary lua file that does all the work. It's pretty awesome.

I've had this flicker problem with anything I drew for the longest time - ever since I started calling draw functions from the GMAPI-enabled DLL. It would randomly happen every 5-10 seconds or so.

Drove me insane! Regardless, I discovered that turning off automatic drawing (set_automatic_draw) and then setting an alarm to draw every frame instead of the draw event and then calling screen_refresh() at then end of that event eliminates this rendering problem all together!

I wasn't relying on views since my lua engine handles all of the placement of "objects" (which are now 100% tables in lua, not objects at all in GML), so this method works well for me!

Just wanted to post because I've finally defeated it! :D

I'm now officially working on a Tactical RPG as well.

Comments

Snakeman 12 years, 1 month ago

Please tell me your RPG has items that are thoroughly described and documented like what you have in that title screen.

DFortun81 12 years, 1 month ago

Yes, all of them have very detailed descriptions and build custom tooltips based on their content.

DFortun81 12 years, 1 month ago

Oh, and you can read the books in the game. The one on the left, if you interact with it, it pops up a readable form with next / previous buttons for reading the entire book. That particular one pulls the information from my webhosted SQL server. lol

svf 12 years, 1 month ago

Very cool. Using C++ with Lua myself. But that's great you were able to combine LUA and GML. :D