#define FULLSCREEN          no
#define WINDOWED_FULLSCREEN yes

#define CONSOLE_ENABLED     true
#define SCRIPT_MEM          5000
#define SCRIPT_DEBUG        no

config
{
    application
    {
        sleep_when_inactive:b       = no
//        visualization_fps_limit:n   = 60
//        max_update_time_span:n      = 0.1
    }
    
    file_system
    {
        archive
        {
            archive_file = "tigra-config.arch"
            source_dir   = "X:/dev/App/Tigra"
            buffer_size  = 262144
        }
    }

    console
    {
        enabled:b       = $(CONSOLE_ENABLED)
        show_at_start:b = yes
        height:n        = 700
    }
    
    debug
    {
        cpu_profiling    = no
        gpu_profiling    = no
        gpu_salvage_mode = no
        log_verbosity   = 5
//        trace_call_stack_on_error:b   = yes
//        trace_call_stack_on_warning:b = yes
    }
    
    video 
    {
//        fullscreen:b                        = yes 
        fullscreen:b                        = $(FULLSCREEN) 
        use_native_fullscreen_resolution:b  = $(WINDOWED_FULLSCREEN)

        window 
        {
//            width = 854 height = 480
//            width = 960 height = 540
            width = 1280 height = 720
        }

        screen
        {
            xres = 1024 yres = 768
        }
    }


    component
    {
        InputSystem
        {
            mouse_class         = "MouseDX7"
            mouse_sensitivity   = 1.0
        
            gamepad_button_map
            {
                button { vb="vb_PS_Cross" id=1 }
                button { vb="vb_PS_Square" id=0 }
                button { vb="vb_PS_Triangle" id=3 }
                button { vb="vb_PS_Circle" id=2 }
                button { vb="vb_PS_L1" id=4 }
                button { vb="vb_PS_R1" id=5 }
                button { vb="vb_PS_Left" id=103 }
                button { vb="vb_PS_Right" id=101 }
                button { vb="vb_PS_Up" id=100 }
                button { vb="vb_PS_Down" id=102 }
                button { vb="vb_PS_Select" id=9 }
                button { vb="vb_PS_Start" id=13 }
            }
        }
        
        VideoSystem
        {
            render
            {
                vsync:b = on
//                vsync:b = off
            }
        }
        
        VisualFX
        {
            particle_mem_size = $(eval 4*1024*1024 )
        }
        
        ScriptEnv
        {
            mem_size:n          = $(SCRIPT_MEM)
            dump_all_scripts:b  = no
            debug_enabled       = $(SCRIPT_DEBUG)
        }
        
        AudioSystem
        {
            audio
            {
                hardware:b      = off
                effects:b       = on
                samplerate:n    = 44100
                mono_voices:n   = 16
                stereo_voices:n = 16
                refresh:n       = 40
            }
        }
    
        PhysWorld
        {
            scale = 2.0
            
            use_parallel_dispatcher = no
            
            simulation
            {
                max_substep_count = 10
                fixed_time_step = $(eval 1/60 )
            }

            collision-group-list
            {
                group { name="world" }
                group { name="trigger" }
                group { name="enemy" }
                group { name="enemy2" }
                group { name="trap" }
                group { name="player" }
                group { name="pickup" }
                group { name="obstacle" }
                group { name="platform" }
                group { name="ignored" }
                group { name="interactive" }
            }
        }
    }
}
