newCanvas causing hard freeze
Posted: Sun Aug 19, 2012 12:46 pm
Yes it's another Canvas-related thread.
I made a mistake in my code and called newCanvas with values of around 7000. It causes my machine (mac air) to freeze, requiring a hard reboot.
I've fixed the bug, but in the future I can see this happening as I make larger levels. It also made me wonder about newCanvas in general.
I have a few questions:
I made a mistake in my code and called newCanvas with values of around 7000. It causes my machine (mac air) to freeze, requiring a hard reboot.
I've fixed the bug, but in the future I can see this happening as I make larger levels. It also made me wonder about newCanvas in general.
I have a few questions:
- What sort of ranges are "acceptable" for newCanvas
- Do other people get similar problems when calling newCanvas with such a large number?
- If this is a known issue, can we get Löve to throw a normal Lua error instead of crashing the entire machine? Or implement some kind of safeguards that could be overridden in conf.lua