Giter Site home page Giter Site logo

ianmicheal / sdl-dreamhal--gldc Goto Github PK

View Code? Open in Web Editor NEW
25.0 5.0 8.0 21.49 MB

KOS2.0 SDL[DREAMHAL]+GLDC]FAST Now using GLDC https://gitlab.com/simulant/GLdc 3D hardware via OpenGL and 2D video framebuffer PVR DMA FLIP Full KallistiOS and SDL integration UPGRADED blitspeed using moops dreamhal sh4 asm memcpy and memset

License: GNU General Public License v2.0

Makefile 1.33% HTML 0.12% C 92.60% C++ 3.76% Shell 0.05% M4 0.11% Assembly 0.58% R 0.01% Logos 0.03% Perl 0.01% Objective-C 1.28% M 0.09% Rebol 0.04%

sdl-dreamhal--gldc's Introduction

# SDL-DREAMHAL Version 1.0 based on SDL1.2.13
GLDC rendering with SDL on dreamcast 
Update fixed headers and multi defines 
* DREAMCAST hardware +opengl SDL FAST BLIT SPEED CUSTOM
2D blit speed benchmark
SDL CHUI

OUTPUT:>                           320x240  320x240    640x480                 640x480
OUTPUT:>                           software hardware software                   hardware
OUTPUT:> Slow points (frames/sec):  0.20885 0.208823 0.0250253 0.0250252 
OUTPUT:> Fast points (frames/sec):  18.4372  18.4544  4.47263  4.47271 
OUTPUT:>    Rect fill (rects/sec):  652.125  652.333  156.312    156.3 
OUTPUT:>  32x32 blits (blits/sec):  1327.28  1327.28  1277.21   1277.6 
OUTPUT:> arch: shutting down kernel
OUTPUT:> maple: final stats -- device count = 2, vbl_cntr = 56270, dma_cntr = 56266
OUTPUT:> vid_set_mode: 640x480 NTSC```
STATE:> Upload processus completed on 6/17/2021 - 09:31:53, Exit Code : 0
```SDL DREAMHAL IAN MICHEAL
OUTPUT:>                           320x240  320x240  640x480  640x480
OUTPUT:>                           software hardware software hardware
OUTPUT:> Slow points (frames/sec): 0.419221 0.419331 0.0502137 0.0502235 
OUTPUT:> Fast points (frames/sec):  36.9728  36.9942  8.97175  8.97364 
OUTPUT:>    Rect fill (rects/sec):  1324.71  1329.87  314.932  314.786 
OUTPUT:>  32x32 blits (blits/sec):  3126.72  3129.11   2957.4  2970.27 
OUTPUT:> arch: shutting down kernel
OUTPUT:> maple: final stats -- device count = 2, vbl_cntr = 27991, dma_cntr = 27976
OUTPUT:> vid_set_mode: 640x480 VGA```
Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. 
*New features
 UPGRADED blitspeed using moops dreamhal sh4 asm memcpy and memset bult in.
  Now using GLDC  https://gitlab.com/simulant/GLdc
	OpenGL (Open Graphics Library) is a standard specification defining a cross-language cross-platform API for writing applications that produce 2D and 3D computer graphics. The    interface consists of over 250 different function calls which can be used to draw complex three-dimensional scenes from simple primitives.	
	Kazade's Dreamcast OpenGL is a more compatible OpenGL (v1.2) library GLDC:	
	Full KallistiOS and SDL integration.
	Texture color and size conversions.
	Two texture internal color mode supported: RGB5551 and RGB4444.
	
	- Ported precompiled libraries and headers needed to compile all examples

-----------------------------------------------------------------------------------
Credit Chui for doing all this work so i could upgrade it and improve it for the new GLDC and Dreamhal math routines and functions 


# Old version
http://chui.dcemu.co.uk/sdl.html

	- VIDEO
 Before SDL_Init call, you can choose SDL video driver for Dreamcast. The following values are valid.

* SDL_DC_DMA_VIDEO (default)
	Use DMA video drive. It is the fastest video driver using double buffer 
	since every graphic access uses RAM and SDL_Flip function sends data to VRAM using DMA.
------------------------------------------------------------------------------------------------------
- SDL_DC_TEXTURED_VIDEO
	Use Textured video driver. If you want to use a virtual resolution (no 640x480, 320x240, ... ), you can use this driver for scaling using hardware texture. PVR textures is always 2^n (128x128, 256x128, 512x256, ... ) and these resolutions are real SDL_Surface resolutions.
Using SDL_FULLSCREEN flag only 2^n resolution are allowed, but if you do not use this flag it will be automatically fit to SDL_SetVideoMode resolution. See SDL_DC_SetWindow for manual fit.
----------------------------------------------------------------------------------------------
- SDL_DC_DIRECT_VIDEO
- ----------------------------
	Use Direct buffer video driver. Maybe faster than DMA driver if you do not use double buffer.
	SDL_DC_SetWindow(int width, int height)
	Only for textured video driver and must be called after SDL_SetVideoMode,
	this function allow setting the visible area (hardware scaled). If you open a 512x256 texture resolution, 
	only smaller virtual resolution is allowed.
	-------------------------------------------------------------------------------------------------
	
* SDL_DC_VerticalWait(SDL_bool value)
-------------------------------------------------
Enable/disable wait for vertical retrace before blitting to PVR hardware.		
	
* SDL_DC_ShowAskHz(SDL_bool value)
------------------------------------
Enable/disable ask for 50/60Hz (only for PAL Dreamcasts) video.		
	
* SDL_DC_Default60Hz(SDL_bool value)
--------------------------------------
True for 60Hz default display (only for PAL Dreamcasts).

* SDL_DC_MapKey(int joy, SDL_DC_button button, SDLKey key)

Map a Dreamcast button to SDLKey. First parameter is number of Dreamcast joystick port (0,1,2 or 3). The following table shows valid values for second parameter and default values for third parameter.


Opengl Dreamhal+GLDC running on Dreamcast hardware
https://streamable.com/55982r
https://streamable.com/kvk4ez
https://streamable.com/5k8lsk

sdl-dreamhal--gldc's People

Contributors

ianmicheal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sdl-dreamhal--gldc's Issues

cant compile on linux mint 21

In the root directory this always happens.

malik@malik-System-Product-Name:~/Desktop/sdlhal$ ./configure

bash: ./configure: No such file or directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.