mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-11-24 14:29:20 +03:00
Refactor Scripts.cpp to no longer hold strings in function args
Instead each line is now held in a const char* array, like it should be. This results in less work for the compiler, especially with optimization, since every time the compiler encounters a constant argument in a function, it has to go off and locate a place to put it. But if we're upfront and say, hey, here's all the strings we ever need conveniently packaged into one place, it'll be much more cooperative.
This commit is contained in:
1 parent
9205421090
commit
815a48c025
2 files changed
+5274
-4801
No files matched your search
@@ -6,6 +6,8 @@
|
||||
|
||||
#include "Enums.h"
|
||||
|
||||
#define filllines(lines) commands.insert(commands.end(), lines, lines + sizeof(lines)/sizeof(lines[0]))
|
||||
|
||||
|
||||
class scriptclass
|
||||
{
|
||||
|
||||
+5272
-4801
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user