src/context.c

changeset 176
cb2f60f48337
parent 174
0009b982bc7d
equal deleted inserted replaced
175:e5544920377e 176:cb2f60f48337
196 break; 196 break;
197 } 197 }
198 } 198 }
199 199
200 // compute frame time 200 // compute frame time
201 // TODO: think about whether frame rate is actually a per-window thing
202 // the answer is hopefully NO, because that would mean behaviors are also a per-window thing
203 uint64_t frame_nanos, ns; 201 uint64_t frame_nanos, ns;
204 do { 202 do {
205 ns = asc_nanos(); 203 ns = asc_nanos();
206 frame_nanos = ns - asc_context.total_nanos; 204 frame_nanos = ns - asc_context.total_nanos;
207 } while (frame_nanos == 0); 205 } while (frame_nanos == 0);

mercurial