Mercurial > repos > blastem
comparison render_sdl.c @ 64:2b1a65f4b85d
Cleanup 68K timing code. Temporarily omment out fFPS counter as it was causing segfaults
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 19 Dec 2012 21:25:39 -0800 |
parents | a6dd5b7a971b |
children | 7a22a0e6c004 |
comparison
equal
deleted
inserted
replaced
63:a6dd5b7a971b | 64:2b1a65f4b85d |
---|---|
200 } | 200 } |
201 while ((desired) < SDL_GetTicks()) { | 201 while ((desired) < SDL_GetTicks()) { |
202 } | 202 } |
203 } | 203 } |
204 render_context(context); | 204 render_context(context); |
205 /* | |
206 //TODO: Figure out why this causes segfaults | |
205 frame_counter++; | 207 frame_counter++; |
206 if ((last_frame - start) > 1000) { | 208 if ((last_frame - start) > 1000) { |
207 if (start) { | 209 if (start) { |
208 printf("\r%f fps", ((float)frame_counter) / (((float)(last_frame-start)) / 1000.0)); | 210 printf("\r%f fps", ((float)frame_counter) / (((float)(last_frame-start)) / 1000.0)); |
209 fflush(stdout); | 211 fflush(stdout); |
210 } | 212 } |
211 start = last_frame; | 213 start = last_frame; |
212 frame_counter = 0; | 214 frame_counter = 0; |
213 } | 215 }*/ |
214 } | 216 } |
215 | 217 |
216 | 218 |