Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clear all Layers
#5
Dragoons Master Wrote:Just one thing for performance, replace the
Code:
For y = 0 To MAX_MAPY
    For x = 0 To MAX_MAPX
        If frmMapEditor.optLayers.Value = True Then
with
Code:
If frmMapEditor.optLayers.Value = True Then
    For y = 0 To MAX_MAPY
        For x = 0 To MAX_MAPX
This way it will not check the if max_mapy*max_mapx times... It's the same thing, but little faster(unnoticeable)...

Does it only loop now if the option is selected? Whereas Will's method, had it looping before it checked..?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)