SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 04-30-10, 04:55 PM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

v2.1.0 is probably going to have some bugs in it, it's just inevitable with the amount of changes I've made to the code. Just report the bugs as always and I'll fix them.

In every version up to 2.1.0 when a file needed to access the options file it imported it. There were many files that needed access to the options file so there were many copies of all these variables floating around (every file had it's own copies of the variables). This was very inefficient on memory and didn't provide for global variables. So I shifted everything over to accessor methods (get/set) and now when a file needs to access an option in the options file (or set an option in the options file) it calls the associated accessor method. This provides for persistent settings for all the variables. Every file gets the same 'state' of the variable in the options file when they ask for it. This was needed for the notepads on the attack, obs, and uzo. This also saves on memory as now only one set of options file variables are being used.
TheDarkWraith is offline   Reply With Quote
 

Tags
dbrn, favorite, new ui


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:24 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.