Lines Matching refs:config
19 #include "Config.hpp"
57 if(!config.disableServer)
114 configuration = config;
211 if(config.disableServer)
273 html += "<option value='0'" + (config.pixelShaderVersion == 0 ? selected : empty) + ">0.0</option>\n";
274 html += "<option value='11'" + (config.pixelShaderVersion == 11 ? selected : empty) + ">1.1</option>\n";
275 html += "<option value='12'" + (config.pixelShaderVersion == 12 ? selected : empty) + ">1.2</option>\n";
276 html += "<option value='13'" + (config.pixelShaderVersion == 13 ? selected : empty) + ">1.3</option>\n";
277 html += "<option value='14'" + (config.pixelShaderVersion == 14 ? selected : empty) + ">1.4</option>\n";
278 html += "<option value='20'" + (config.pixelShaderVersion == 20 ? selected : empty) + ">2.0</option>\n";
279 html += "<option value='21'" + (config.pixelShaderVersion == 21 ? selected : empty) + ">2.x</option>\n";
280 html += "<option value='30'" + (config.pixelShaderVersion == 30 ? selected : empty) + ">3.0 (default)</option>\n";
283 html += "<option value='0'" + (config.vertexShaderVersion == 0 ? selected : empty) + ">0.0</option>\n";
284 html += "<option value='11'" + (config.vertexShaderVersion == 11 ? selected : empty) + ">1.1</option>\n";
285 html += "<option value='20'" + (config.vertexShaderVersion == 20 ? selected : empty) + ">2.0</option>\n";
286 html += "<option value='21'" + (config.vertexShaderVersion == 21 ? selected : empty) + ">2.x</option>\n";
287 html += "<option value='30'" + (config.vertexShaderVersion == 30 ? selected : empty) + ">3.0 (default)</option>\n";
290 html += "<option value='128'" + (config.textureMemory == 128 ? selected : empty) + ">128 MB</option>\n";
291 html += "<option value='256'" + (config.textureMemory == 256 ? selected : empty) + ">256 MB (default)</option>\n";
292 html += "<option value='512'" + (config.textureMemory == 512 ? selected : empty) + ">512 MB</option>\n";
293 html += "<option value='1024'" + (config.textureMemory == 1024 ? selected : empty) + ">1024 MB</option>\n";
294 html += "<option value='2048'" + (config.textureMemory == 2048 ? selected : empty) + ">2048 MB</option>\n";
297 html += "<option value='0'" + (config.identifier == 0 ? selected : empty) + ">Google SwiftShader (default)</option>\n";
298 html += "<option value='1'" + (config.identifier == 1 ? selected : empty) + ">NVIDIA GeForce 7900 GS</option>\n";
299 html += "<option value='2'" + (config.identifier == 2 ? selected : empty) + ">ATI Mobility Radeon X1600</option>\n";
300 html += "<option value='3'" + (config.identifier == 3 ? selected : empty) + ">Intel GMA X3100</option>\n";
301 html += "<option value='4'" + (config.identifier == 4 ? selected : empty) + ">System device</option>\n";
307 html += "<option value='64'" + (config.vertexRoutineCacheSize == 64 ? selected : empty) + ">64</option>\n";
308 html += "<option value='128'" + (config.vertexRoutineCacheSize == 128 ? selected : empty) + ">128</option>\n";
309 html += "<option value='256'" + (config.vertexRoutineCacheSize == 256 ? selected : empty) + ">256</option>\n";
310 html += "<option value='512'" + (config.vertexRoutineCacheSize == 512 ? selected : empty) + ">512</option>\n";
311 html += "<option value='1024'" + (config.vertexRoutineCacheSize == 1024 ? selected : empty) + ">1024 (default)</option>\n";
312 html += "<option value='2048'" + (config.vertexRoutineCacheSize == 2048 ? selected : empty) + ">2048</option>\n";
313 html += "<option value='4096'" + (config.vertexRoutineCacheSize == 4096 ? selected : empty) + ">4096</option>\n";
317 html += "<option value='64'" + (config.pixelRoutineCacheSize == 64 ? selected : empty) + ">64</option>\n";
318 html += "<option value='128'" + (config.pixelRoutineCacheSize == 128 ? selected : empty) + ">128</option>\n";
319 html += "<option value='256'" + (config.pixelRoutineCacheSize == 256 ? selected : empty) + ">256</option>\n";
320 html += "<option value='512'" + (config.pixelRoutineCacheSize == 512 ? selected : empty) + ">512</option>\n";
321 html += "<option value='1024'" + (config.pixelRoutineCacheSize == 1024 ? selected : empty) + ">1024 (default)</option>\n";
322 html += "<option value='2048'" + (config.pixelRoutineCacheSize == 2048 ? selected : empty) + ">2048</option>\n";
323 html += "<option value='4096'" + (config.pixelRoutineCacheSize == 4096 ? selected : empty) + ">4096</option>\n";
327 html += "<option value='64'" + (config.setupRoutineCacheSize == 64 ? selected : empty) + ">64</option>\n";
328 html += "<option value='128'" + (config.setupRoutineCacheSize == 128 ? selected : empty) + ">128</option>\n";
329 html += "<option value='256'" + (config.setupRoutineCacheSize == 256 ? selected : empty) + ">256</option>\n";
330 html += "<option value='512'" + (config.setupRoutineCacheSize == 512 ? selected : empty) + ">512</option>\n";
331 html += "<option value='1024'" + (config.setupRoutineCacheSize == 1024 ? selected : empty) + ">1024 (default)</option>\n";
332 html += "<option value='2048'" + (config.setupRoutineCacheSize == 2048 ? selected : empty) + ">2048</option>\n";
333 html += "<option value='4096'" + (config.setupRoutineCacheSize == 4096 ? selected : empty) + ">4096</option>\n";
337 html += "<option value='64'" + (config.vertexCacheSize == 64 ? selected : empty) + ">64 (default)</option>\n";
344 html += "<option value='0'" + (config.textureSampleQuality == 0 ? selected : empty) + ">Point</option>\n";
345 html += "<option value='1'" + (config.textureSampleQuality == 1 ? selected : empty) + ">Linear</option>\n";
346 html += "<option value='2'" + (config.textureSampleQuality == 2 ? selected : empty) + ">Anisotropic (default)</option>\n";
350 html += "<option value='0'" + (config.mipmapQuality == 0 ? selected : empty) + ">Point</option>\n";
351 html += "<option value='1'" + (config.mipmapQuality == 1 ? selected : empty) + ">Linear (default)</option>\n";
355 html += "<option value='0'" + (config.perspectiveCorrection == 0 ? selected : empty) + ">Off</option>\n";
356 html += "<option value='1'" + (config.perspectiveCorrection == 1 ? selected : empty) + ">On (default)</option>\n";
360 html += "<option value='0'" + (config.transcendentalPrecision == 0 ? selected : empty) + ">Approximate</option>\n";
361 html += "<option value='1'" + (config.transcendentalPrecision == 1 ? selected : empty) + ">Partial</option>\n";
362 html += "<option value='2'" + (config.transcendentalPrecision == 2 ? selected : empty) + ">Accurate (default)</option>\n";
363 html += "<option value='3'" + (config.transcendentalPrecision == 3 ? selected : empty) + ">WHQL</option>\n";
364 html += "<option value='4'" + (config.transcendentalPrecision == 4 ? selected : empty) + ">IEEE</option>\n";
368 html += "<option value='0'" + (config
369 html += "<option value='1'" + (config.transparencyAntialiasing == 1 ? selected : empty) + ">Alpha-to-Coverage</option>\n";
375 html += "<option value='-1'" + (config.threadCount == -1 ? selected : empty) + ">Core count</option>\n";
376 html += "<option value='0'" + (config.threadCount == 0 ? selected : empty) + ">Process affinity (default)</option>\n";
377 html += "<option value='1'" + (config.threadCount == 1 ? selected : empty) + ">1</option>\n";
378 html += "<option value='2'" + (config.threadCount == 2 ? selected : empty) + ">2</option>\n";
379 html += "<option value='3'" + (config.threadCount == 3 ? selected : empty) + ">3</option>\n";
380 html += "<option value='4'" + (config.threadCount == 4 ? selected : empty) + ">4</option>\n";
381 html += "<option value='5'" + (config.threadCount == 5 ? selected : empty) + ">5</option>\n";
382 html += "<option value='6'" + (config.threadCount == 6 ? selected : empty) + ">6</option>\n";
383 html += "<option value='7'" + (config.threadCount == 7 ? selected : empty) + ">7</option>\n";
384 html += "<option value='8'" + (config.threadCount == 8 ? selected : empty) + ">8</option>\n";
385 html += "<option value='9'" + (config.threadCount == 9 ? selected : empty) + ">9</option>\n";
386 html += "<option value='10'" + (config.threadCount == 10 ? selected : empty) + ">10</option>\n";
387 html += "<option value='11'" + (config.threadCount == 11 ? selected : empty) + ">11</option>\n";
388 html += "<option value='12'" + (config.threadCount == 12 ? selected : empty) + ">12</option>\n";
389 html += "<option value='13'" + (config.threadCount == 13 ? selected : empty) + ">13</option>\n";
390 html += "<option value='14'" + (config.threadCount == 14 ? selected : empty) + ">14</option>\n";
391 html += "<option value='15'" + (config.threadCount == 15 ? selected : empty) + ">15</option>\n";
392 html += "<option value='16'" + (config.threadCount == 16 ? selected : empty) + ">16</option>\n";
394 html += "<tr><td>Enable SSE:</td><td><input name = 'enableSSE' type='checkbox'" + (config.enableSSE ? checked : empty) + " disabled='disabled' title='If checked enables the use of SSE instruction set extentions if supported by the CPU.'></td></tr>";
395 html += "<tr><td>Enable SSE2:</td><td><input name = 'enableSSE2' type='checkbox'" + (config.enableSSE2 ? checked : empty) + " title='If checked enables the use of SSE2 instruction set extentions if supported by the CPU.'></td></tr>";
396 html += "<tr><td>Enable SSE3:</td><td><input name = 'enableSSE3' type='checkbox'" + (config.enableSSE3 ? checked : empty) + " title='If checked enables the use of SSE3 instruction set extentions if supported by the CPU.'></td></tr>";
397 html += "<tr><td>Enable SSSE3:</td><td><input name = 'enableSSSE3' type='checkbox'" + (config.enableSSSE3 ? checked : empty) + " title='If checked enables the use of SSSE3 instruction set extentions if supported by the CPU.'></td></tr>";
398 html += "<tr><td>Enable SSE4.1:</td><td><input name = 'enableSSE4_1' type='checkbox'" + (config.enableSSE4_1 ? checked : empty) + " title='If checked enables the use of SSE4.1 instruction set extentions if supported by the CPU.'></td></tr>";
406 html += "<option value='0'" + (config.optimization[pass] == 0 ? selected : empty) + ">Disabled" + (pass > 0 ? " (default)" : "") + "</option>\n";
407 html += "<option value='1'" + (config.optimization[pass] == 1 ? selected : empty) + ">Instruction Combining" + (pass == 0 ? " (default)" : "") + "</option>\n";
408 html += "<option value='2'" + (config.optimization[pass] == 2 ? selected : empty) + ">Control Flow Simplification</option>\n";
409 html += "<option value='3'" + (config.optimization[pass] == 3 ? selected : empty) + ">Loop Invariant Code Motion</option>\n";
410 html += "<option value='4'" + (config.optimization[pass] == 4 ? selected : empty) + ">Aggressive Dead Code Elimination</option>\n";
411 html += "<option value='5'" + (config.optimization[pass] == 5 ? selected : empty) + ">Global Value Numbering</option>\n";
412 html += "<option value='6'" + (config.optimization[pass] == 6 ? selected : empty) + ">Commutative Expressions Reassociation</option>\n";
413 html += "<option value='7'" + (config.optimization[pass] == 7 ? selected : empty) + ">Dead Store Elimination</option>\n";
414 html += "<option value='8'" + (config.optimization[pass] == 8 ? selected : empty) + ">Sparse Conditional Copy Propagation</option>\n";
415 html += "<option value='9'" + (config.optimization[pass] == 9 ? selected : empty) + ">Scalar Replacement of Aggregates</option>\n";
422 html += "<tr><td>Disable SwiftConfig server:</td><td><input name = 'disableServer' type='checkbox'" + (config.disableServer == true ? checked : empty) + " title='If checked disables the web browser based control panel.'></td></tr>";
423 html += "<tr><td>Force windowed mode:</td><td><input name = 'forceWindowed' type='checkbox'" + (config.forceWindowed == true ? checked : empty) + " title='If checked prevents the application from switching to full-screen mode.'></td></tr>";
424 html += "<tr><td>Complementary depth buffer:</td><td><input name = 'complementaryDepthBuffer' type='checkbox'" + (config.complementaryDepthBuffer == true ? checked : empty) + " title='If checked causes 1 - z to be stored in the depth buffer.'></td></tr>";
425 html += "<tr><td>Post alpha blend sRGB conversion:</td><td><input name = 'postBlendSRGB' type='checkbox'" + (config.postBlendSRGB == true ? checked : empty) + " title='If checked alpha blending is performed in linear color space.'></td></tr>";
426 html += "<tr><td>Exact color rounding:</td><td><input name = 'exactColorRounding' type='checkbox'" + (config.exactColorRounding == true ? checked : empty) + " title='If checked color rounding is done at high accuracy.'></td></tr>";
427 html += "<tr><td>Disable alpha display formats:</td><td><input name = 'disableAlphaMode' type='checkbox'" + (config.disableAlphaMode == true ? checked : empty) + " title='If checked the device does not advertise the A8R8G8B8 display mode.'></td></tr>";
428 html += "<tr><td>Disable 10-bit display formats:</td><td><input name = 'disable10BitMode' type='checkbox'" + (config.disable10BitMode == true ? checked : empty) + " title='If checked the device does not advertise the A2R10G10B10 display mode.'></td></tr>";
430 html += "<option value='0'" + (config.frameBufferAPI == 0 ? selected : empty) + ">DirectDraw (default)</option>\n";
431 html += "<option value='1'" + (config.frameBufferAPI == 1 ? selected : empty) + ">GDI</option>\n";
433 html += "<tr><td>DLL precaching:</td><td><input name = 'precache' type='checkbox'" + (config.precache == true ? checked : empty) + " title='If checked dynamically generated routines will be stored in a DLL for faster loading on application restart.'></td></tr>";
435 html += "<option value='0'" + (config.shadowMapping == 0 ? selected : empty) + ">None</option>\n";
436 html += "<option value='1'" + (config.shadowMapping == 1 ? selected : empty) + ">Fetch4</option>\n";
437 html += "<option value='2'" + (config.shadowMapping == 2 ? selected : empty) + ">DST</option>\n";
438 html += "<option value='3'" + (config.shadowMapping == 3 ? selected : empty) + ">Fetch4 & DST (default)</option>\n";
440 html += "<tr><td>Force clearing registers that have no default value:</td><td><input name = 'forceClearRegisters' type='checkbox'" + (config.forceClearRegisters == true ? checked : empty) + " title='Initializes shader register values to 0 even if they have no default.'></td></tr>";
445 html += "<tr><td>Minimum primitives:</td><td><input type='text' size='10' maxlength='10' name='minPrimitives' value='" + itoa(config.minPrimitives) + "'></td></tr>\n";
446 html += "<tr><td>Maximum primitives:</td><td><input type='text' size='10' maxlength='10' name='maxPrimitives' value='" + itoa(config.maxPrimitives) + "'></td></tr>\n";
536 config.enableSSE = true;
537 config.enableSSE2 = false;
538 config.enableSSE3 = false;
539 config.enableSSSE3 = false;
540 config.enableSSE4_1 = false;
541 config.disableServer = false;
542 config.forceWindowed = false;
543 config.complementaryDepthBuffer = false;
544 config.postBlendSRGB = false;
545 config.exactColorRounding = false;
546 config.disableAlphaMode = false;
547 config.disable10BitMode = false;
548 config.precache = false;
549 config.forceClearRegisters = false;
558 config.pixelShaderVersion = integer;
562 config.vertexShaderVersion = integer;
566 config.textureMemory = integer;
570 config.identifier = integer;
574 config.vertexRoutineCacheSize = integer;
578 config.pixelRoutineCacheSize = integer;
582 config.setupRoutineCacheSize = integer;
586 config.vertexCacheSize = integer;
590 config.textureSampleQuality = integer;
594 config.mipmapQuality = integer;
598 config.perspectiveCorrection = integer != 0;
602 config.transcendentalPrecision = integer;
606 config.transparencyAntialiasing = integer;
610 config.threadCount = integer;
614 config.frameBufferAPI = integer;
618 config.shadowMapping = integer;
622 config.enableSSE = true;
626 if(config.enableSSE)
628 config.enableSSE2 = true;
633 if(config.enableSSE2)
635 config.enableSSE3 = true;
640 if(config.enableSSE3)
642 config.enableSSSE3 = true;
647 if(config.enableSSSE3)
649 config.enableSSE4_1 = true;
654 config.optimization[index - 1] = (Optimization)integer;
658 config.disableServer = true;
662 config.forceWindowed = true;
666 config.complementaryDepthBuffer = true;
670 config.postBlendSRGB = true;
674 config.exactColorRounding = true;
678 config.disableAlphaMode = true;
682 config.disable10BitMode = true;
686 config.precache = true;
690 config.forceClearRegisters = true;
695 config.minPrimitives = integer;
699 config.maxPrimitives = integer;
719 config.pixelShaderVersion = ini.getInteger("Capabilities", "PixelShaderVersion", 30);
720 config.vertexShaderVersion = ini.getInteger("Capabilities", "VertexShaderVersion", 30);
721 config.textureMemory = ini.getInteger("Capabilities", "TextureMemory", 256);
722 config.identifier = ini.getInteger("Capabilities", "Identifier", 0);
723 config.vertexRoutineCacheSize = ini.getInteger("Caches", "VertexRoutineCacheSize", 1024);
724 config.pixelRoutineCacheSize = ini.getInteger("Caches", "PixelRoutineCacheSize", 1024);
725 config.setupRoutineCacheSize = ini.getInteger("Caches", "SetupRoutineCacheSize", 1024);
726 config.vertexCacheSize = ini.getInteger("Caches", "VertexCacheSize", 64);
727 config.textureSampleQuality = ini.getInteger("Quality", "TextureSampleQuality", 2);
728 config.mipmapQuality = ini.getInteger("Quality", "MipmapQuality", 1);
729 config.perspectiveCorrection = ini.getBoolean("Quality", "PerspectiveCorrection", true);
730 config.transcendentalPrecision = ini.getInteger("Quality", "TranscendentalPrecision", 2);
731 config.transparencyAntialiasing = ini.getInteger("Quality", "TransparencyAntialiasing", 0);
732 config.threadCount = ini.getInteger("Processor", "ThreadCount", DEFAULT_THREAD_COUNT);
733 config.enableSSE = ini.getBoolean("Processor", "EnableSSE", true);
734 config.enableSSE2 = ini.getBoolean("Processor", "EnableSSE2", true);
735 config.enableSSE3 = ini.getBoolean("Processor", "EnableSSE3", true);
736 config.enableSSSE3 = ini.getBoolean("Processor", "EnableSSSE3", true);
737 config.enableSSE4_1 = ini.getBoolean("Processor", "EnableSSE4_1", true);
741 config.optimization[pass] = (Optimization)ini.getInteger("Optimization", "OptimizationPass" + itoa(pass + 1), pass == 0 ? InstructionCombining : Disabled);
744 config.disableServer = ini.getBoolean("Testing", "DisableServer", false);
745 config.forceWindowed = ini.getBoolean("Testing", "ForceWindowed", false);
746 config.complementaryDepthBuffer = ini.getBoolean("Testing", "ComplementaryDepthBuffer", false);
747 config.postBlendSRGB = ini.getBoolean("Testing", "PostBlendSRGB", false);
748 config.exactColorRounding = ini.getBoolean("Testing", "ExactColorRounding", true);
749 config.disableAlphaMode = ini.getBoolean("Testing", "DisableAlphaMode", false);
750 config.disable10BitMode = ini.getBoolean("Testing", "Disable10BitMode", false);
751 config.frameBufferAPI = ini.getInteger("Testing", "FrameBufferAPI", 0);
752 config.precache = ini.getBoolean("Testing", "Precache", false);
753 config.shadowMapping = ini.getInteger("Testing", "ShadowMapping", 3);
754 config.forceClearRegisters = ini.getBoolean("Testing", "ForceClearRegisters", false);
757 config.minPrimitives = 1;
758 config.maxPrimitives = 1 << 21;
769 config.disableServer = true;
777 ini.addValue("Capabilities", "PixelShaderVersion", itoa(config.pixelShaderVersion));
778 ini.addValue("Capabilities", "VertexShaderVersion", itoa(config.vertexShaderVersion));
779 ini.addValue("Capabilities", "TextureMemory", itoa(config.textureMemory));
780 ini.addValue("Capabilities", "Identifier", itoa(config.identifier));
781 ini.addValue("Caches", "VertexRoutineCacheSize", itoa(config.vertexRoutineCacheSize));
782 ini.addValue("Caches", "PixelRoutineCacheSize", itoa(config.pixelRoutineCacheSize));
783 ini.addValue("Caches", "SetupRoutineCacheSize", itoa(config.setupRoutineCacheSize));
784 ini.addValue("Caches", "VertexCacheSize", itoa(config.vertexCacheSize));
785 ini.addValue("Quality", "TextureSampleQuality", itoa(config.textureSampleQuality));
786 ini.addValue("Quality", "MipmapQuality", itoa(config.mipmapQuality));
787 ini.addValue("Quality", "PerspectiveCorrection", itoa(config.perspectiveCorrection));
788 ini.addValue("Quality", "TranscendentalPrecision", itoa(config.transcendentalPrecision));
789 ini.addValue("Quality", "TransparencyAntialiasing", itoa(config.transparencyAntialiasing));
790 ini.addValue("Processor", "ThreadCount", itoa(config.threadCount));
791 // ini.addValue("Processor", "EnableSSE", itoa(config.enableSSE));
792 ini.addValue("Processor", "EnableSSE2", itoa(config.enableSSE2));
793 ini.addValue("Processor", "EnableSSE3", itoa(config.enableSSE3));
794 ini.addValue("Processor", "EnableSSSE3", itoa(config.enableSSSE3));
795 ini.addValue("Processor", "EnableSSE4_1", itoa(config.enableSSE4_1));
799 ini.addValue("Optimization", "OptimizationPass" + itoa(pass + 1), itoa(config.optimization[pass]));
802 ini.addValue("Testing", "DisableServer", itoa(config.disableServer));
803 ini.addValue("Testing", "ForceWindowed", itoa(config.forceWindowed));
804 ini.addValue("Testing", "ComplementaryDepthBuffer", itoa(config.complementaryDepthBuffer));
805 ini.addValue("Testing", "PostBlendSRGB", itoa(config.postBlendSRGB));
806 ini.addValue("Testing", "ExactColorRounding", itoa(config.exactColorRounding));
807 ini.addValue("Testing", "DisableAlphaMode", itoa(config.disableAlphaMode));
808 ini.addValue("Testing", "Disable10BitMode", itoa(config.disable10BitMode));
809 ini.addValue("Testing", "FrameBufferAPI", itoa(config.frameBufferAPI));
810 ini.addValue("Testing", "Precache", itoa(config.precache));
811 ini.addValue("Testing", "ShadowMapping", itoa(config.shadowMapping));
812 ini.addValue("Testing", "ForceClearRegisters", itoa(config.forceClearRegisters));