Changeset 466 in flair-src
- Timestamp:
- Mar 9, 2022, 10:29:38 AM (3 years ago)
- Location:
- trunk/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/FrameworkManager_impl.cpp
r424 r466 109 109 110 110 // Avoids memory swapping for this program 111 // GL simulator will unlock memory, otherwise it can cause problems when running simlator as non root 111 112 mlockall(MCL_CURRENT | MCL_FUTURE); 112 113 -
trunk/lib/FlairSimulator/src/Gui_impl.cpp
r365 r466 29 29 #include <unistd.h> 30 30 #include <sstream> 31 #include <sys/mman.h> 31 32 32 33 using namespace irr; … … 84 85 this->scene_width = scene_width; 85 86 this->scene_height = scene_height; 87 88 //unlock memory for GL simulator, otherwise it can cause problems when running simlator as non root 89 //(mmap can fail) 90 //memory was locked by FrameworkManager_impl constructor 91 munlockall(); 86 92 87 93 device = createDevice(driver_type, dimension2d<u32>(app_width, app_height),16, false, false, false);
Note:
See TracChangeset
for help on using the changeset viewer.