This repository has been archived by the owner on Sep 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify memory areas m_memPoints1, m_memPoints2 and m_memInverse into a…
… single slightly larger memory area. Reduces on-device memory usage from ~2.47 GiB to ~1 GiB. Speeds seem unaffected.
- Loading branch information
Johan Gustafsson
committed
May 10, 2018
1 parent
e7c7b56
commit d3cdd5f
Showing
4 changed files
with
93 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
#ifndef HPP_CONSTANTS | ||
#define HPP_CONSTANTS | ||
|
||
const size_t g_worksizes[] = { | ||
1, | ||
255, | ||
255 * 255, | ||
255 * 255 * 255 | ||
}; | ||
|
||
#define PROFANITY_PASSES 3 | ||
#define PROFANITY_SIZE (g_worksizes[PROFANITY_PASSES]) | ||
#define PROFANITY_DEBUG true | ||
|
||
#ifndef HPP_CONSTANTS | ||
#define HPP_CONSTANTS | ||
|
||
const size_t g_worksizes[] = { | ||
1, | ||
255, | ||
255 * 255, | ||
255 * 255 * 255 | ||
}; | ||
|
||
#define PROFANITY_PASSES 3 | ||
#define PROFANITY_SIZE (255 * 255 * 255) | ||
#define PROFANITY_MEM_SIZE (1 + 255 + 255 * 255 + 255 * 255 * 255) | ||
#define PROFANITY_DEBUG true | ||
|
||
#endif /* HPP_CONSTANTS */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters