Search found 4289 matches

by albinopapa
November 25th, 2020, 9:13 am
Forum: Everything
Topic: SIMD library attempt inf
Replies: 25
Views: 1313

Re: SIMD library attempt inf

Over a month since making the last post and not much has changed. I'm still packing and getting ready to move. A month seems like a long time to pack, but I still have two weeks before I can even move in to my new place, so I've been taking my time. Then there is the process of cleaning up the house...
by albinopapa
November 16th, 2020, 1:59 pm
Forum: Everything
Topic: Get pixel function for D3D11 backbuffer?
Replies: 4
Views: 106

Re: Get pixel function for D3D11 backbuffer?

I can't say for sure, but if you are trying to mix hardware rendering with software rendering, there might be a more efficient way of going about it. The steps I'm thinking of would be: Create a staging texture not retrieved from the swap chain, this will be what you render 3D to. Create a system bu...
by albinopapa
November 16th, 2020, 1:37 pm
Forum: Everything
Topic: Get pixel function for D3D11 backbuffer?
Replies: 4
Views: 106

Re: Get pixel function for D3D11 backbuffer?

Your code is potentially unsafe though. You create a texture locally using ComPtr, so the texture gets released when the function ends. You also map the resource on a resource that get's destroyed at the end of the function. The staging texture should be a member of graphics, of course then you'd al...
by albinopapa
November 6th, 2020, 3:13 pm
Forum: Everything
Topic: Beginner T17 <chrono> FPS explanation
Replies: 5
Views: 144

Re: Beginner T17 <chrono> FPS explanation

Yep, you got it.
by albinopapa
November 5th, 2020, 5:02 am
Forum: Everything
Topic: Beginner T17 <chrono> FPS explanation
Replies: 5
Views: 144

Re: Beginner T17 <chrono> FPS explanation

Your understanding is correct, but the math is off: 120 fps = 8 milliseconds per frame 60 fps = 16 milliseconds per frame 30 fps = 33 milliseconds per frame However, refresh rate only caps the framerate if vsync is on. Let's now say that you have so much going on and even though your refresh rate is...
by albinopapa
November 4th, 2020, 4:07 am
Forum: Everything
Topic: Beginner T17 <chrono> FPS explanation
Replies: 5
Views: 144

Re: Beginner T17 <chrono> FPS explanation

Let's say you you want something to move 100 pixels/sec. If you get 60 frames per second, you'd want to divide 100/60 to get pixels per frame. Since time per frame can vary, you'd want to get the time since last frame and multiply that by the "speed", so in your example of .03 seconds, you get 3 pix...
by albinopapa
October 22nd, 2020, 3:54 am
Forum: Everything
Topic: SIMD library attempt inf
Replies: 25
Views: 1313

Re: SIMD library attempt inf

Well, I've completed the book, but somewhere along the way I mistranslated the C code. I get stuck in an infinite loop and haven't found where yet. Going through a rough patch right now, so not very motivated to do much coding. I have a few ideas about what I want to do, but they will have to wait u...
by albinopapa
October 11th, 2020, 9:20 am
Forum: Everything
Topic: SIMD library attempt inf
Replies: 25
Views: 1313

Re: SIMD library attempt inf

I'm on chapter 24 of that book, so much to keep track of. This may take a really long time to take it all in lol. I tried translating the java version to c++, but ran into some difficulty when doing blocks. In the book, it seems Java can change an overridden function's signature. All other statement...
by albinopapa
October 7th, 2020, 3:16 am
Forum: Everything
Topic: My first maze game
Replies: 2
Views: 206

Re: My first maze game

I'll give you the steps which should give you a reasonable idea. if jumping up ( standing still ) check cells above from left to right of player if jumping to the right, check cells from left to right top to bottom of player if jumping left, check cells from right to left bottom to top of player if ...
by albinopapa
October 7th, 2020, 3:05 am
Forum: Everything
Topic: My first maze game
Replies: 2
Views: 206

Re: My first maze game

Actually, if you look through his old intermediate series, he sets up a platformer game with some tile collision. This is what I did for a maze game I started but never finished.