Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

Question about memory #1134

Description

@miguelgomezmunoz

I have project that shows the world map but I was having issues with the memory so I have created a new empty project, currently I only have the following:

MainWindow.xaml

<Window x:Class="WorldMap.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
        xmlns:dxc="clr-namespace:SharpDX.WPF;assembly=SharpDX.WPF"
        xmlns:local="clr-namespace:WorldMap.Scenario"
        Title="World Map"        
        Height="1080" Width="1920"
        WindowStartupLocation="CenterScreen">
    <Grid Background="LightGray">
        <dxc:DXElement Grid.Column="0" x:Name="m_Dxelement">
            <dxc:DXElement.Renderer>
                <local:Scene_Map x:Name="m_Scene_Map"/>
            </dxc:DXElement.Renderer>
        </dxc:DXElement>
    </Grid>
</Window>

MainWindow.xaml.cs

using System.Windows;
namespace WorldMap
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
        }
    }
}

Scene_Map.cs

using SharpDX.WPF;
namespace WorldMap.Scenario
{
    public class Scene_Map : D3D11
    {
        public Scene_Map()
        {
        }
    }
}

When I execute it, the memory increases really fast (around 6MB each minute), what am I doing wrong?
I am new into SharpDX so I really appreciate any help.

Thanks in advance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions