Does using modules slow down performance in any way?

If I split up my program into modules, with functions being called from different modules during gameplay, does this slow down game performance in any way? [import]uid: 12941 topic_id: 9940 reply_id: 309940[/import]

Although this isn’t my area of expertise I can tell you that the first large app I created with Corona was almost entirely in one file, while it’s update (a slightly larger app, of course) was split up.

The split up version did not cause any slowdown whatsoever.

Also, having different code in different files is a great way to manage things, keep them organized and find them easily.

Hope that helps :slight_smile:

Peach [import]uid: 52491 topic_id: 9940 reply_id: 36223[/import]

Thanks Peach,

Proof of an example speaks louder that words. This will help me move on and start using modules now.

This is a fun SDK to work with by the way and a great community. I have put up a few apps using Obj-C recently but this is so much quicker and less of a headache.

Kind regards,

Kevin [import]uid: 12941 topic_id: 9940 reply_id: 36753[/import]

@Kevin

Try to read this article http://lua-users.org/wiki/LuaModuleFunctionCritiqued. It is a good read for everyone started using Lua Module [import]uid: 41267 topic_id: 9940 reply_id: 36763[/import]

No worries Kevin; it’s always best to test your own code too, so keep that in mind :slight_smile:

That said, I love things being modular and as discussed above have not had any issues with it whatsoever.

I hope to see more of you around; indeed, Corona is a joy to use :smiley: [import]uid: 52491 topic_id: 9940 reply_id: 36782[/import]

Thanks inas,

Will check this out. [import]uid: 12941 topic_id: 9940 reply_id: 36902[/import]