elimelec / inethack

Automatically exported from code.google.com/p/inethack
GNU General Public License v2.0
0 stars 0 forks source link

Drawing optimizations #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Zoom out so you see the whole level
2. Pan a little around

What is the expected output? What do you see instead?

Performance is sluggish and might be optimized.

Original issue reported on code.google.com by din...@gmail.com on 8 Aug 2009 at 4:37

GoogleCodeExporter commented 8 years ago
Ok, performance is sub par and *must* be optimized.

Since I'm not an UIKit guy it's likely that I will introduce opengl here.

Unless someone volunteers to enhance the UIKit stuff :)

Original comment by din...@gmail.com on 14 Aug 2009 at 9:05

GoogleCodeExporter commented 8 years ago
I can most likely help you out without having to go to OpenGL, as I know a 
thing or two about the subject in 
rogue-likes ;)  Won't have time due to being out of town this weekend (I will, 
however be playtesting the hell out 
of iNetHack).

What device are you testing with, a 1st gen iPod Touch? Those are the slowest 
of all, at 333Mhz. I have a 3GS, 
which of course is fine, but I also have a 1st gen iPhone to use to check 
performance. 

Original comment by kevinh...@gmail.com on 14 Aug 2009 at 12:02

GoogleCodeExporter commented 8 years ago
iPod touch (bought q1 2008, don't know which gen that is). Thought they are 
faster
than 1st gen iPhones? If they are that slow then it's probably the best testing
device I can imagine :)

I'm just testing some clipping, maybe that helps. I do have some opengl 
backends from
a couple of tile-based prototypes in the drawer, but this would require some
rewriting of string output (probably in separate overlay views).

Will be out of town too this week end, don't know how much work I get done on 
the road.

Original comment by din...@gmail.com on 14 Aug 2009 at 12:10

GoogleCodeExporter commented 8 years ago
With a little clipping in r127 it feels a lot faster :) I consider this fixed 
until
someone reopens it.

Original comment by din...@gmail.com on 14 Aug 2009 at 12:25

GoogleCodeExporter commented 8 years ago
If you got it in Q1 2008 it should be a 1st gen touch, the slowest of all 
devices. If anyone feels that this is still 
sluggish after the clipping mod I'll put some work into it too.

Original comment by kevinh...@gmail.com on 14 Aug 2009 at 12:42

GoogleCodeExporter commented 8 years ago

Original comment by din...@gmail.com on 24 Aug 2009 at 3:17

GoogleCodeExporter commented 8 years ago
This week end I experimented with an opengl view. Performance actually 
decreased,
maybe because of added complexity with the status and message strings (I drew 
each in
its own label).

But I found that MainView was drawing 3 times at each action, which I reduced 
to just
1 in r216. Probably doesn't enhance panning but stepping through Minetown feels
faster no on my ipod.

Original comment by din...@gmail.com on 24 Aug 2009 at 3:44