| Summary: | SDL 1.2.10 loading graphics into virtual memory? | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Steve Allen <ssallen> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | ||
| Version: | 2.0.0 | ||
| Hardware: | x86 | ||
| OS: | Windows (XP) | ||
| Attachments: | The test file is also included here. I didn't see this before. | ||
|
Description
Steve Allen
2006-05-19 13:54:01 UTC
Created attachment 131 [details]
The test file is also included here. I didn't see this before.
Thanks again!
Probably due to the switch to windib as the default video target on Windows. Try forcing it to use DirectX and see if it goes back to old behaviour. --ryan. (In reply to comment #2) > Probably due to the switch to windib as the default video target on Windows. > > Try forcing it to use DirectX and see if it goes back to old behaviour. > > --ryan. > Hello again, what would be the best method of going about this? I don't see a use_this_driver()-esque api call. Should I recompile the dll with the defaults switched? Thanks! You can set an environment variable: SDL_VIDEODRIVER=directx Be careful that SDL actually picks that up, since Windows is a little fruity about environment variables. Check SDL_VideoDriverName() to see what you got (if it tells you "windib", then you got the default one). Alternately, you could rebuild SDL, but this should work. --ryan. Looks like you are correct sir. I set the environ var to directx and all is behaving splendidly again. The memory usage is correct and doesn't appear to be paging anymore. I removed the environment var and rebooted again and get windib back with its paging fetish. Let me know if you want me to try anything else. Thanks! Ok, that's expected, then. What I would recommend is that you forcibly set that environment variable in your program before the SDL_Init() call...we changed the default to windib because we had a lot of problems with buggy drivers crashing machines, but if it hasn't been a problem for you, you might as well use it. We're adding a better means to select a video backend to SDL 1.3, and hopefully moving the Windows code to something that's more powerful than DirectX 5, too. --ryan. |