@@ -199,13 +199,13 @@ int main(int argc, char** argv)
199199 }
200200 auto stats = ((MemoryPagesPool::Stats *)msgBuffer[1 +p*2 ]);
201201 unsigned int npages = msgSize[2 +p*2 ] / sizeof (MemoryPagesPool::PageStat);
202- printf (" %d %d: %f - %f - %u\n " ,p, stats->id , stats->t0 ,stats->t1 ,npages);
202+ // printf("%d %d: %f - %f - %u\n",p, stats->id, stats->t0,stats->t1,npages);
203203 auto ps = (MemoryPagesPool::PageStat*)msgBuffer[2 +p*2 ];
204204 int c = 0 ;
205205 for (unsigned int k = 0 ; k<npages; k++) {
206206 if (ps[k].state != MemoryPage::PageState::Idle) c++;
207207 }
208- printf (" busy pages = %d / %u\n " ,c,npages);
208+ // printf("busy pages = %d / %u\n",c,npages);
209209 }
210210
211211 if (isOk) {
@@ -216,17 +216,17 @@ int main(int argc, char** argv)
216216 SDL_SetRenderDrawColor (hRenderer, 0 , 0 , 0 , 0 );
217217 SDL_RenderClear (hRenderer);
218218
219- printf (" %d,%d\n " , szx,szy);
219+ // printf("%d,%d\n", szx,szy);
220220
221221 int border=10 ;
222222 // one column per pool
223223 int cw=(szx-(nPools+1 )*border)/nPools;
224224 int cy=szy-2 *border;
225- printf (" cw,cy= %d, %d\n " ,cw, cy);
225+ // printf("cw,cy= %d, %d\n",cw, cy);
226226 for (unsigned int p=0 ; p<nPools; p++) {
227227 int ox=border+(border+cw)*p;
228228 int oy=border;
229- printf (" ox,oy= %d, %d\n " ,ox, oy);
229+ // printf("ox,oy= %d, %d\n",ox, oy);
230230 SDL_SetRenderDrawColor (hRenderer, 0 , 0 , 255 , 255 );
231231 SDL_Rect r = {ox,oy,cw,cy};
232232 SDL_RenderDrawRect (hRenderer, &r);
@@ -239,12 +239,12 @@ int main(int argc, char** argv)
239239 unsigned int sq=(cw-2 *bb)*(cy-2 *bb);
240240 unsigned int pxk = (int )sqrt (sq/npages);
241241 pxk=6 ;
242- printf (" pxk=%d\n " ,pxk);
242+ // printf("pxk=%d\n",pxk);
243243 unsigned int npl = (cw-bb) / pxk;
244244 for (unsigned int k = 0 ; k<npages; k++) {
245245 switch (ps[k].state ) {
246246 case MemoryPage::PageState::Idle:
247- SDL_SetRenderDrawColor (hRenderer, 32 , 32 , 32 , 255 );
247+ SDL_SetRenderDrawColor (hRenderer, 48 , 48 , 48 , 255 );
248248 break ;
249249 case MemoryPage::PageState::InROC:
250250 SDL_SetRenderDrawColor (hRenderer, 0 , 255 , 255 , 255 );
@@ -292,7 +292,7 @@ int main(int argc, char** argv)
292292
293293
294294 if (SDL_PollEvent (&event)) {
295- printf (" event type=%d\n " ,(int )event.type );
295+ // printf("event type=%d\n",(int)event.type);
296296 shutdown=1 ;
297297 switch (event.type ) {
298298 case SDL_QUIT:
0 commit comments