Fixed loading of tilesets and images from tilemaps to correctly use relative paths. FPS has dropped dramatically on tilemap rendering - impact as much as 75% - and I think it has something to do with the string limits that had to be increased to make this work. Probably has to do with SDL string property hashing in the registry methods related to tilesets.
This commit is contained in:
@@ -3,8 +3,9 @@
|
||||
|
||||
#include "string.h"
|
||||
#include <akerror.h>
|
||||
#include <limits.h>
|
||||
|
||||
#define AKGL_MAX_STRING_LENGTH 256
|
||||
#define AKGL_MAX_STRING_LENGTH PATH_MAX
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@@ -13,5 +14,5 @@ typedef struct
|
||||
} akgl_String;
|
||||
|
||||
akerr_ErrorContext AKERR_NOIGNORE *akgl_string_initialize(akgl_String *obj, char *init);
|
||||
|
||||
akerr_ErrorContext AKERR_NOIGNORE *akgl_string_copy(akgl_String *src, akgl_String *dst, int count);
|
||||
#endif //_STRING_H_
|
||||
|
||||
Reference in New Issue
Block a user