More render.lua improvements.