Author Topic: Mappy  (Read 6114 times)

MrTAToad

  • Guest
Re: Mappy
« Reply #15 on: 2010-Apr-14 »
Give this a go - removed a bit more error checking

[attachment deleted by admin]

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4152
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: Mappy
« Reply #16 on: 2010-Apr-14 »
Doesn't seem to be much of a difference really.
I came. I saw. I played.

Offline Kuron

  • Mr. Polyvector
  • ***
  • Posts: 238
    • View Profile
Re: Mappy
« Reply #17 on: 2010-Apr-14 »
MrTAToad:  What method are you using to control your framerate?

MrTAToad

  • Guest
Re: Mappy
« Reply #18 on: 2010-Apr-14 »
There isn't - its just going as fast as possible.  LIMITFPS  is set to -1

Using VIEWPORT does hammer the program speed, especially with 4 sections :)

There is one more bit that can simplified - I'll try that later on...
« Last Edit: 2010-Apr-15 by MrTAToad »

Offline Wampus

  • Prof. Inline
  • *****
  • Posts: 1004
    • View Profile
Re: Mappy
« Reply #19 on: 2010-Apr-16 »
I'm getting the same result as others; the more tiles displayed the slower it goes. On an old Pentium 4 3.2GHz the processor is getting fairly well hammered.

There must be some reason for that. How much is the routine doing other than displaying the map sprites?

[edit: Nevermind. I saw you posted the code elsewhere. Thanks.]
« Last Edit: 2010-Apr-16 by Ragaril »

MrTAToad

  • Guest
Re: Mappy
« Reply #20 on: 2010-Apr-17 »
Aside from displaying the tiles, it just animates them.

Have a look at the source code and see if you can speed it up...