At Sat, 26 Dec 2015 06:52:19 -0800 (PST), Taro Annual wrote: > 2015年12月26日土曜日 21時54分52秒 UTC+9 Matthew Flatt: > > Can you try a current snapshot to see whether it eliminates pauses?: > > > > http://pre.racket-lang.org/ > > > > [...] > > Sorry, it doesn't work well. Try the follows:
Can you say more about your platform, how you're running the program, and what the pause looks like? On OS X 10.11 and Racket 6.3.0.10, I started the program with env PLTSTDERR="debug@GC error" racket pong.rkt and I see output like ... GC: 0:MAJ @ 111,386K(+56,166K)[+7,508K]; free 31,113K(-47,429K) 145ms @ 1521 GC: 0:mIn @ 113,400K(+73,411K)[+9,864K]; free 29,273K(-27,310K) 18ms @ 3536 GC: 0:mIn @ 92,385K(+92,464K)[+9,756K]; free 8,216K(-8,216K) 4ms @ 4125 GC: 0:mIn @ 92,433K(+92,416K)[+9,752K]; free 8,249K(-8,249K) 3ms @ 4705 GC: 0:mIn @ 92,470K(+92,379K)[+9,752K]; free 8,267K(-8,267K) 4ms @ 5295 GC: 0:mIn @ 92,447K(+92,402K)[+9,752K]; free 8,235K(-8,235K) 4ms @ 5898 GC: 0:mIn @ 92,468K(+92,381K)[+9,752K]; free 8,231K(-8,231K) 4ms @ 6485 GC: 0:mIn @ 92,517K(+92,331K)[+9,760K]; free 8,266K(-8,266K) 4ms @ 7050 GC: 0:mIn @ 92,511K(+92,337K)[+9,760K]; free 8,237K(-8,237K) 3ms @ 7599 GC: 0:mIn @ 92,559K(+92,290K)[+9,756K]; free 8,282K(-8,282K) 4ms @ 8181 GC: 0:mIn @ 92,520K(+92,328K)[+9,756K]; free 8,225K(-8,225K) 3ms @ 8767 GC: 0:mIn @ 92,521K(+92,328K)[+9,756K]; free 8,203K(-8,203K) 4ms @ 9355 GC: 0:mIn @ 92,542K(+92,307K)[+9,752K]; free 8,211K(-8,211K) 3ms @ 9929 GC: 0:mIn @ 92,659K(+92,190K)[+9,756K]; free 8,232K(-8,232K) 4ms @ 10501 where the "MAJ" is just before the game window shows. I'm not noticing pauses interactively, either. I'm only running the game for under a minute, though. I see similar results when I run in DrRacket. The pauses tend to be longer, but usually in the 6-10ms range -- and nothing close to 300-500ms after the forced GC before the game starts. Thanks for your help, Matthew -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.