f3hler / beginning-android-games

Automatically exported from code.google.com/p/beginning-android-games
0 stars 0 forks source link

SurfaceViewTest implementation bug #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the printed version of the book, in the sub-section "Continuous Rendering 
with SurfaceView", chapter 4, page 179, listing 4-16 leads to an infinite loop.

In method pause() of the inner class FastRenderView, after the join of the 
render thread, the while loop condition is trivially still valid, and the 
application freezes until the complete saturation of the DVM memory. 

It's necessary to add a break after renderThread.join() call. 
However, the online source code is correct.

--- Alessandro Dal Bello ---

Original issue reported on code.google.com by alessand...@gmail.com on 21 Aug 2011 at 7:32

GoogleCodeExporter commented 9 years ago
Yes, this has been reported a few times and has been fixed. Thanks a bunch!

Original comment by badlogicgames on 24 Aug 2011 at 4:13

GoogleCodeExporter commented 9 years ago
Sorry, I didn't found any previous report about this issue. 

Maybe I may seem pedantic with all those issues reports, but your book it's 
very instructive, especially for a beginner like me in the field of games 
programming. So, I think that contribution of the whole community of readers 
can help this book to be better in its second edition :) 

Thanks for all your projects, in particular libGDX!

--- Alessandro Dal Bello ---

Original comment by alessand...@gmail.com on 24 Aug 2011 at 5:55