added a rendering context, and a frame-rate limiter