Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

DirectX9

Featured Replies

Hoping I'm positing in a relative forum.

Right now I have created a menu system for a RPG I'm working on with the help of DirectX9. I was proud of it at first since I picked up DirectX9 programming a month and a half ago, with minimal C programming knowledge. Got the whole select the menu, draws over another, etc, things figured out. But now I've ceased operations since I hit a hurdle gfx-wise.

Currently I use Draw(MF_OptionsMenu_BG,... for the graphical background and use DrawTextA(d3dspt,... for the text. When I call three menus up my fps jumps from 60fps to around 30fps. I'm assuming that each frame draws the menu, the text, other smaller button gfx, etc, then the next menu over, ditto, ... with each frame draw. If this is true, which I don't see why it wouldn't be, then this is a lot of wasted cycles with redrawing of pixels over each other. I'm currently thinking of drawing to a buffer, manipulating the contents, and then using that finished product for a menu so I only have to update it once. Then clipping the appropriate portions and drawing called menus to a screen buffer, then filling in the unoccupied pixels with the 3d rendered background. This is the bst (untested) approach I can think of right now. Is this possible in DirectX9? Is there a better approach?

Notes: I was looking into closer-to-the-metal approaches and found a few things, like SVGA and some NVIDIA tuts, but the SVGA stuff is old and am uncertain if it is still included in graphics cards and NVIDIA only talks about 3d stuff, and not the kind of 2d stuff I'm looking to do. Am I looking in the wrong place or just interpreting the information wrong? If I'm going to go closer to the metal I want it to be as generalized as possible (between PCs).

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.