Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMLive.gml

Livecoding for GameMaker: Studio / GameMaker Studio 2 · By YellowAfterlife

Frame rate issue

A topic by Slyddar created Apr 27, 2018 Views: 293 Replies: 1
Viewing posts 1 to 2

Hi,

I have a simple project with a single ds_grid loop in a draw event, that is 35 lines.  It's not intensive at all and runs at ~2000fps.  Enabling gml_live on this page drops the fps to ~70.

Is this normal with ds_grid's?

Developer

As per documentation, GMLive does interpret live-reloaded code, so that is going to work slower while it is enabled for the snippet.

Depending on what the actual code is, the issue is likely not so much in using a ds_grid, but in using instance variables - in GML itself, instance variable access is one of the fastest operations, but GMLive can only use variable_instance_get/set, which aren't that fast at the moment. Assigning the grid to a temporary variable might ease the issue, but it's probably not worth worrying about if you are going to prototype something and then disable GMLive for that code block.