• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.


  • Content count

  • Joined

  • Last visited

Community Reputation

100 Neutral

About LarsKJ

  • Rank
  1. To whom it might concern: It seems that I have to answer my own question. I added the missing TextFormat.SetTrimming as follows: TextFormat.h Result SetTrimming(Trimming trimming, InlineObject ^trimmingSign); TextFormat.cpp Result TextFormat::SetTrimming(SlimDX::DirectWrite::Trimming trimming, InlineObject ^trimmingSign) { return RECORD_DW(InternalPointer->SetTrimming(reinterpret_cast<DWRITE_TRIMMING *>( &trimming ), trimmingSign->InternalPointer)); } I hope this small contribution can be made part of the official SlimDX distribution, both as a benefit for other users and also to ourselves to avoid the extra custom build in the future. Best Regards Lars Krog-Jensen
  2. Hello, I am rewriting an application and replacing Win7ApiCodePack/DirectX with SlimDX but I cannot find a DirectWrite TextFormat.SetTrimming(..) method, or is this accomplished some other way with SlimDX. Best Regards Lars Krog-Jensen
  3. Josh: From within the app's diagnostics monitor I am looking at: long total = Process.GetCurrentProcess().PrivateMemorySize64; long managed = GC.GetTotalMemory(false); long unmanaged = total - unmanaged; The task managers 'Private Working Set' shows the same as total above. For video memory usage on XP I am using 'Video Memory Watcher', does not work on Windows 7 Adam_42: Sounds reasonable, but on the other hand - when running the exact same app with a D2D (DX10) renderer layer I would expect it show the same memory usage pattern - but it does not, not even close. Lars
  4. When using DirectX9 devices on Windows Vista and Windows 7 it seems to allocate alot of system ram. The exact same app on XP is consuming video memory, but hardly any system ram at all - as I would expect. Same app running with a Direct2D render layer on Windows 7 is consuming very little system ram. Should say that it is not on the managed heap, and thus the unmanaged heap. Anyone knows if this behavior is expected due to some changes i Windows 7? Regards Lars
  5. I have built a datagrid with SlimDX and Direct2D/DirectWrite that I am trying to make scrolling smoother and faster. When scrolling I would like to avoid repainting the entire scene and only push a certain area of the existing scene upwards or downwards, and then only paint the new rows. I don't want to move the entire scene as the header should remain fix. The part that I do not know how to handle is how to make a rectangle and move it. Anyone has a suggestion that is performant.
  6. Quote: Even with man different texts using a TextLayout is a good practice. But there are really a lot of different, although short, text messages that is drawn and if I would hold all those it would consume alot CPU RAM for the TextLayout cache and guess the TextLayout consumes some memory on the GPU aswell. I could of course have size bound cache that starts evict items after a while, but it feels like a work around of the real problem that is to get the GPU doing more of the work and free up the CPU for other tasks.
  7. Hi I have a question regarding DirectWrite/Direct2D text rendering performance that I cannot get to perform as good as I want/expected. We have built a market data 'realtime' datagrid using different rendering strategies depending on OS version, available HW and user preferences. I have built a DirectX9, Direct2D/DirectWrite and a GdiPlus strategy. All those works fine and the DirectX9 version is the clear performance leader, which is using the Direct3D Font that to my knowledge is using GDI behind the scenes to rasterize the text before being sent to the GPU. This performs OK. When first heard of DirectWrite is was supposed to be all in HW, but this seems not to be true, when profiling the majority of the CPU time is spent in the WindowRenderTarget.DrawText. I have experimented with the different settings to get it perform better, but with no success. In fact; DirectWrite performs worse than the GdiPlus rendering strategy. (Perhaps I should say that the GdiPlus strategy is drawing to a BufferedGraphics that is in turn is using GDI to BitBlt the back buffer, so it is kind of HW accelerated) Does anyone have some information regarding how to make DirectWrite perform optimal and if it using the CPU to rasterize the fonts. The application is displaying a lot of different text, so reusing a TextLayout is not an option. The only downside of the DirectX9 strategy is that it seems to allocation huge amount of RAM, a trading desktop might have hundreds of different windows displaying different data - so it is a problem as well. I would be really grateful if someone would share their knowledge on this. Regards Lars
  8. Hi I am using SlimDX D2D and are trying to convert a Bitmap (D2D)to PNG image that I can store to file. Does anyone know how to do this? Best Regards Lars Krog-Jensen
  9. Hello, I am prototyping a high performance datagridview with Direct2D/DirectWrite, which draws /alot/ of text. This works very nicely but there are one scenario that I would like to enhance and that is when a new row is added in the top of the data. I would like to 'push' all existing rows (content) by a small offset (RowHeight), and only draw my new row at the top. Now I have to repaint the entire render target and this involve as alot of memcopy from system memory to GPU memory. Anyone got a idéa how to this can be done whith Direct2D. I tried to draw textlayout, but as there are a lot of different text this will probably eat up the gpu memory quickly. Regards Lars