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

Question about memory #1134

Open
miguelgomezmunoz opened this issue Mar 7, 2019 · 0 comments
Open

Question about memory #1134

miguelgomezmunoz opened this issue Mar 7, 2019 · 0 comments

Comments

@miguelgomezmunoz
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant