projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
frame rate independence
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_sfd.h
diff --git
a/world_sfd.h
b/world_sfd.h
index f765910e56dd71bb7aa89eebd9ef2756d0d6934a..71e8a94afdb738937ffbbabb2bd9d7c6a0a99781 100644
(file)
--- a/
world_sfd.h
+++ b/
world_sfd.h
@@
-1,3
+1,7
@@
+/*
+ * Copyright (C) 2021-2022 Mt.ZERO Software, Harry Godden - All Rights Reserved
+ */
+
#ifndef SFD_H
#define SFD_H
#ifndef SFD_H
#define SFD_H
@@
-85,7
+89,7
@@
static void sfd_update( struct sfd_instance *display )
float *target = &display->buffer[i],
*cur = target+display->w*display->h;
float *target = &display->buffer[i],
*cur = target+display->w*display->h;
- float const rate =
ktimestep*
15.2313131414f;
+ float const rate =
vg.time_delta *
15.2313131414f;
float d1 = *target-*cur;
if( fabsf(d1) > rate )
float d1 = *target-*cur;
if( fabsf(d1) > rate )