farmisen / iphonefrotz

Automatically exported from code.google.com/p/iphonefrotz
Other
0 stars 0 forks source link

To-Do: Truncate story window history #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please describe the feature request:
The longer you play, the more sluggish the text updates become because the 
iPhone isn't able to 
update the formatting in the scroll back buffer fast enough.
Truncating to the most recent few hundred lines to improve performance.

Original issue reported on code.google.com by spath...@gmail.com on 13 Aug 2008 at 6:30

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
could you store a backlog and put a [MORE] button at the top of the log and by 
hitting that it loads in the next 
chunk?

Original comment by cgbarrett@gmail.com on 14 Aug 2008 at 5:18

GoogleCodeExporter commented 9 years ago
I was thinking of something similar.
I can detect when you scroll to the top, and then repopulate the full backlog 
to the text buffer only then.
When you scroll back to the bottom, the old content is removed from the buffer.
Hopefully I an make this work without making the scrolling awkward.  

Original comment by spath...@gmail.com on 14 Aug 2008 at 5:26

GoogleCodeExporter commented 9 years ago
I've implemented simple truncation of the story scrollback buffer to ~16K 
characters for now, and that helps 
performance a lot.

As far as storing a separate backlog, the UIScrollView/UITextView APIs 
available are just not rich enough to get 
this working in a smooth transparent fashion.  Dealing with scrolling is like 
banging your head against the wall.  I 
could add a separate button to view the whole history and that would be easy, 
but clunky.
Closing this issue for now, may revisit in the future.

Original comment by spath...@gmail.com on 16 Aug 2008 at 10:59

GoogleCodeExporter commented 9 years ago
Closing as Fixed since 1.0.1 is on iTunes.

Original comment by spath...@gmail.com on 28 Aug 2008 at 5:00