Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Exceeded instruction limit!

edited November 2012 in General Posts: 1

Hey there Codeans,

So I'm building this project which uses a lot of objects, classes within classes, and I'm calling a whole bunch of draw() functions from a single drawAll() function. At this line, Codea occasionally gives me a "Lua program has exceeded instruction limit" error message. I can only assume this means I need to optimise my code. I'm new to Lua, and have only actually worked with even simpler scripting languages, so are there any general techniques people can suggest me for optimisation?



  • Jmv38Jmv38 Mod
    Posts: 3,297

    Maybe: make sure you avoid infinite recursion with some of your function?

  • Posts: 20

    You could also call this in your setup function. It'll tell it there's no instruction limit I believe:

Sign In or Register to comment.