Small improvements; User guide work

This commit is contained in:
grayson committed 2021-12-15 16:22:44 -06:00
1 parent f691da4103
commit a85f77c023
16 files changed
+184 -25

No files matched your search

+1 -7
View File
@@ -340,14 +340,8 @@ namespace nf {
m_fpsClock2 = std::chrono::steady_clock::now();
m_fpsDuration = m_fpsClock2 - m_fpsClock1;
if (m_fpsDuration.count() >= 0.2) {
if (m_fpsDuration.count() >= 0.1) {
m_FPS = (int)std::round(1.0 / m_deltaTime);
#ifdef NFDEBUG
static int i = 0;
i++;
if (i % 5 == 0)
NFLog("FPS: " + std::to_string(m_FPS));
#endif
m_fpsClock1 = std::chrono::steady_clock::now();
}
}
+2 -2
View File
@@ -35,9 +35,9 @@ namespace nf {
printCurrentTime();
std::printf("NF ");
SetConsoleTextAttribute(cmd, 6);
std::printf("Log: ");
std::printf("Log");
SetConsoleTextAttribute(cmd, 7);
std::printf("%s\n", in);
std::printf(": %s\n", in);
}
void Debug::LogImp(const std::string& in) {
+1 -1
View File
@@ -12,7 +12,7 @@ namespace nf {
* A cubemap is a cube with a texture on each one of its 6 sides.
*
* @sa @ref createCubemapTut
* @ref customCubemap
* @ref customCubemaps
*/
class Cubemap : public Drawable, public NFObject {
public: