goodpals / pixothermic

A hot 'n' cold themed puzzle platformer made for Flame Jam 3.0 (2023)
2 stars 0 forks source link

Improve performance of heat transfer #13

Open alexobviously opened 11 months ago

alexobviously commented 11 months ago

In particular, heat transfer through static metal blocks is unnecessarily performance intensive. We don't need to use collisions for these because we know their positions. In fact, we probably don't need collisions for crate to block transfer. We can possibly precompile a map of squares that have heat transfer relationships with static blocks and check if heatables are in those squares, in a loop in the foreground layer.