~pixelherodev/DSM-9

0c2005b562b85167666580efee3ec9f3ebbc7de9 — Noam Preil 3 days ago 06b2e4c
dsm9load: don't time subloading events

The timings were needed during the optimization design phase, which is
now complete.
1 files changed, 0 insertions(+), 7 deletions(-)

M sm2.c
M sm2.c => sm2.c +0 -7
@@ 79,23 79,16 @@ int
dsm9load(char *basepath, dsm9deck *deck)
{
	char *deckpath = aprintf("%s.deck", basepath);
	double dt;
	if(deckpath == NULL)
		return 0;
	dsm9unload(deck);
	delta();
	deck->deckbuf = readfile(deckpath, &deck->decklen);
	dt = delta();
	printf("Deck buffer loaded in %fs\n", dt);
	free(deckpath);
	if(deck->deckbuf == NULL){
		fprintf(stderr, "Unable to read deck for '%s'", basepath);
		return 0;
	}
	delta();
	initcards(deck);
	dt = delta();
	printf("Cards initialized in %fs\n", dt);
	if(!accelload(deck, basepath))
		return 0;
	return 1;